efivar: fix build when CFLAGS unset. #220

This commit is contained in:
Dylan Araps 2020-09-21 08:54:37 +03:00
parent 44e81f6fe3
commit b91421ec8b
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/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 -i 's/ -flto//' Make.defaults
for patch in *.patch; do
patch -p1 < "$patch"
done