]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
efivar: Fix build with GCC 10
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Aug 2020 16:48:17 +0000 (16:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Aug 2020 10:29:42 +0000 (10:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/efivar

index a2e86a255a48cf90a4552299bed83a454c6fcd70..4453f99f293989463ac92cd0e8ef57be3156a2c8 100644 (file)
@@ -74,6 +74,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/efivar-37-compile-fixes-1.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/efivar-37-compile-fixes-2.patch
+
+       # -Werror, not even once
+       cd $(DIR_APP) && sed -e "s/-Werror//g" -i gcc.specs
+
        cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKETUNING)
        cd $(DIR_APP) && make install