2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-16 11:40:21 -07:00
repo/extra/efivar/build
2021-07-18 05:33:04 +03:00

22 lines
474 B
Bash
Executable File

#!/bin/sh -e
# LTO is used when CFLAGS are unset causing a compilation
# error with GCC 10. LTO can be set by the user though
# '-flto-partition=none' is also needed.
sed 's/ -flto//' src/include/defaults.mk > _
mv -f _ src/include/defaults.mk
# Avoid repeating ourselves.
mk() {
make \
-j1 \
libdir=/usr/lib/ \
bindir=/usr/bin/ \
mandir=/usr/share/man/ \
includedir=/usr/include/ \
"$@"
}
mk COMPILER="$CC"
mk install