2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 07:40:11 -07:00
repo/extra/efivar/build
2022-05-02 11:37:44 -05:00

18 lines
535 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
# Remove mandoc build dependency
mv docs/efisecdb.1.mdoc docs/efisecdb.1
make COMPILER="$CC"
make libdir=/usr/lib/ install