aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Rogers <brogers@suse.com>2020-05-06 15:03:02 -0600
committerMichael Brown <mcb30@ipxe.org>2020-06-27 21:16:07 +0100
commitf982a712979619dbae2c6e0d741757e2ce94be11 (patch)
tree890fe6658ac58db8596ad02d0f82b177de7960cc
parent3f637d7462e7688638b4084717297db8638bdffb (diff)
downloadipxe-temp.zip
ipxe-temp.tar.gz
ipxe-temp.tar.bz2
[build] Be explicit about -fcommon compiler directivetemp
gcc10 switched default behavior from -fcommon to -fno-common. Since "__shared" relies on the legacy behavior, explicitly specify it. Signed-off-by: Bruce Rogers <brogers@suse.com> Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/Makefile.housekeeping1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 66d6dd4..b6c61c1 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -418,6 +418,7 @@ CFLAGS += -Os
CFLAGS += -g
ifeq ($(CCTYPE),gcc)
CFLAGS += -ffreestanding
+CFLAGS += -fcommon
CFLAGS += -Wall -W -Wformat-nonliteral
HOST_CFLAGS += -Wall -W -Wformat-nonliteral
endif