From: Bruce Rogers Date: Wed, 6 May 2020 21:03:02 +0000 (-0600) Subject: [build] Be explicit about -fcommon compiler directive X-Git-Tag: v1.21.1~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f982a712979619dbae2c6e0d741757e2ce94be11;p=thirdparty%2Fipxe.git [build] Be explicit about -fcommon compiler directive 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 --- diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 66d6dd449..b6c61c112 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