]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
sysfsutils: Fix build with GCC 10
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Aug 2020 18:19:41 +0000 (18:19 +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/sysfsutils

index 6da94cfecabd630fe93e6c934ed088b42e49db72..b177cb322a06eb6c9c4892a18f5639c55bb72b45 100644 (file)
@@ -33,6 +33,8 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
+CFLAGS    += -fcommon
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -73,7 +75,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
        $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && ./configure --prefix=""
-       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make $(MAKETUNING) \
+               CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)