forked from kiss-community/repo
efivar: simplify build
This commit is contained in:
parent
30ef3a30a0
commit
3018544053
|
@ -1,21 +1,4 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
# LTO is used when CFLAGS are unset causing a compilation
|
make COMPILER="$CC"
|
||||||
# error with GCC 10. LTO can be set by the user though
|
make libdir=/usr/lib/ install
|
||||||
# '-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
|
|
||||||
|
|
Loading…
Reference in New Issue