summaryrefslogtreecommitdiffstats
path: root/recipes-extended/ipxe/files/build-be-explicit-about-fcommon-compiler-directive.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/ipxe/files/build-be-explicit-about-fcommon-compiler-directive.patch')
-rw-r--r--recipes-extended/ipxe/files/build-be-explicit-about-fcommon-compiler-directive.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-extended/ipxe/files/build-be-explicit-about-fcommon-compiler-directive.patch b/recipes-extended/ipxe/files/build-be-explicit-about-fcommon-compiler-directive.patch
new file mode 100644
index 00000000..6fa58580
--- /dev/null
+++ b/recipes-extended/ipxe/files/build-be-explicit-about-fcommon-compiler-directive.patch
@@ -0,0 +1,33 @@
1From f982a712979619dbae2c6e0d741757e2ce94be11 Mon Sep 17 00:00:00 2001
2Message-Id: <f982a712979619dbae2c6e0d741757e2ce94be11.1602165412.git.bertrand.marquis@arm.com>
3From: Bruce Rogers <brogers@suse.com>
4Date: Wed, 6 May 2020 15:03:02 -0600
5Subject: [PATCH] [build] Be explicit about -fcommon compiler directive
6
7gcc10 switched default behavior from -fcommon to -fno-common. Since
8"__shared" relies on the legacy behavior, explicitly specify it.
9
10Upstream-Status: backport
11
12Signed-off-by: Bruce Rogers <brogers@suse.com>
13Modified-by: Michael Brown <mcb30@ipxe.org>
14Signed-off-by: Michael Brown <mcb30@ipxe.org>
15---
16 src/Makefile.housekeeping | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
20index 66d6dd44..b6c61c11 100644
21--- a/Makefile.housekeeping
22+++ b/Makefile.housekeeping
23@@ -418,6 +418,7 @@ CFLAGS += -Os
24 CFLAGS += -g
25 ifeq ($(CCTYPE),gcc)
26 CFLAGS += -ffreestanding
27+CFLAGS += -fcommon
28 CFLAGS += -Wall -W -Wformat-nonliteral
29 HOST_CFLAGS += -Wall -W -Wformat-nonliteral
30 endif
31--
322.17.1
33