2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

efivar: simplify build

This commit is contained in:
Dylan Araps 2021-07-27 18:23:30 +03:00
parent 30ef3a30a0
commit 3018544053
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -1,21 +1,4 @@
#!/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
make COMPILER="$CC"
make libdir=/usr/lib/ install