repo/extra/efivar/build
Owen Rafferty 86805cbbb8
efivar: 38
2022-04-29 13:18:46 -05:00

15 lines
461 B
Bash
Executable File

#!/bin/sh -e
patch -p1 < musl-compat.patch
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