2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 11:10:08 -07:00
repo/extra/efivar/build

22 lines
487 B
Plaintext
Raw Normal View History

#!/bin/sh -e
2019-10-08 02:18:28 -06:00
# 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.
2021-07-05 07:37:08 -06:00
sed 's/ -flto//' src/include/defaults.mk > _
mv -f _ src/include/defaults.mk
2019-10-08 02:18:28 -06:00
# Avoid repeating ourselves.
mk() {
make \
-j1 \
2019-10-08 02:18:28 -06:00
libdir=/usr/lib/ \
bindir=/usr/bin/ \
mandir=/usr/share/man/ \
includedir=/usr/include/ \
"$@"
}
2020-02-11 23:58:54 -07:00
mk CC="${CC:-cc}"
2019-10-08 02:18:28 -06:00
mk DESTDIR="$1" install