[17/62] sysfsutils: Fix build with GCC 10

Message ID 20200816102953.3881-17-michael.tremer@ipfire.org
State Accepted
Commit dd1f9c0fc1040f9b4edae7d15f9aa6efeee50fa0
Headers
Series [01/62] bison: Update to 3.7.1 |

Commit Message

Michael Tremer Aug. 16, 2020, 10:29 a.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/sysfsutils | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
  

Patch

diff --git a/lfs/sysfsutils b/lfs/sysfsutils
index 6da94cfec..b177cb322 100644
--- a/lfs/sysfsutils
+++ b/lfs/sysfsutils
@@ -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)