From b91421ec8b03b701a900f2738ae7740f3036c007 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 21 Sep 2020 08:54:37 +0300 Subject: [PATCH] efivar: fix build when CFLAGS unset. #220 --- extra/efivar/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extra/efivar/build b/extra/efivar/build index 8f51eebd..762b19f8 100755 --- a/extra/efivar/build +++ b/extra/efivar/build @@ -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