Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
efivar: simplify build
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jul 27, 2021
1 parent 30ef3a3 commit 3018544
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions extra/efivar/build
@@ -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

0 comments on commit 3018544

Please sign in to comment.