139cdd2a16
Update to v5.1.0 qemu OBS-URL: https://build.opensuse.org/request/show/825860 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=557
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
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: 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 <brogers@suse.com>
|
|
Modified-by: Michael Brown <mcb30@ipxe.org>
|
|
Signed-off-by: Michael Brown <mcb30@ipxe.org>
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
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
|