]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Be explicit about -fcommon compiler directive
authorBruce Rogers <brogers@suse.com>
Wed, 6 May 2020 21:03:02 +0000 (15:03 -0600)
committerMichael Brown <mcb30@ipxe.org>
Sat, 27 Jun 2020 20:16:07 +0000 (21:16 +0100)
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>
src/Makefile.housekeeping

index 66d6dd449d03d0f8c3095653ffc306dfb9e69078..b6c61c11249c4c4922e065997399249be8fc5943 100644 (file)
@@ -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