repo/extra/efivar/build
Dylan Araps 1f2467755a
efivar: fix linking with alternative linkers.
This just removes --add-needed which was "temporarily" added to
the build proceess 6 years ago but seems to cause zero issues when
removed today(?).
2021-08-15 08:59:15 +03:00

14 lines
431 B
Bash
Executable File

#!/bin/sh -e
patch -p1 < no-add-needed.patch
# Disable test program 'thread-test' as it causes build failures when using
# parallel make (due to missing dependency on libefivar.so). Other workarounds
# include patching the Makefile or forcing -j1 (what we used to do).
# See: https://github.com/rhboot/efivar/pull/169
sed 's/thread-test//' src/Makefile > _
mv -f _ src/Makefile
make COMPILER="$CC"
make libdir=/usr/lib/ install