30 lines
1015 B
Diff
30 lines
1015 B
Diff
|
From: Bruce Rogers <brogers@suse.com>
|
||
|
Date: Wed, 6 May 2020 15:03:02 -0600
|
||
|
Subject: [build] Be explicit about -fcommon compiler directive
|
||
|
|
||
|
Git-commit: 6260364cc4bfea9a78867da63be8d4bf50e4a561
|
||
|
References: boo#1171140
|
||
|
|
||
|
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 | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/roms/ipxe/src/Makefile.housekeeping b/roms/ipxe/src/Makefile.housekeeping
|
||
|
index 1b175b9508c0d20f169801f8763d..893bd20f1fd5cecf0e480dee05bd 100644
|
||
|
--- a/roms/ipxe/src/Makefile.housekeeping
|
||
|
+++ b/roms/ipxe/src/Makefile.housekeeping
|
||
|
@@ -422,6 +422,7 @@ CFLAGS += -Os
|
||
|
CFLAGS += -g
|
||
|
ifeq ($(CCTYPE),gcc)
|
||
|
CFLAGS += -ffreestanding
|
||
|
+CFLAGS += -fcommon
|
||
|
CFLAGS += -Wall -W -Wformat-nonliteral
|
||
|
HOST_CFLAGS += -Wall -W -Wformat-nonliteral
|
||
|
endif
|