From: Bruce Rogers Date: Wed, 6 May 2020 15:03:02 -0600 Subject: [build] Be explicit about -fcommon compiler directive Git-commit: f982a712979619dbae2c6e0d741757e2ce94be11 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 Modified-by: Michael Brown Signed-off-by: Michael Brown Signed-off-by: Bruce Rogers --- src/Makefile.housekeeping | 1 + 1 file changed, 1 insertion(+) diff --git a/roms/ipxe/src/Makefile.housekeeping b/roms/ipxe/src/Makefile.housekeeping index 4b09e81f0b1eb82e79f6af11986d..f6f3e29248d3e59b76de690aeb0c 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