diff options
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.patch | 33 |
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 @@ | |||
1 | From f982a712979619dbae2c6e0d741757e2ce94be11 Mon Sep 17 00:00:00 2001 | ||
2 | Message-Id: <f982a712979619dbae2c6e0d741757e2ce94be11.1602165412.git.bertrand.marquis@arm.com> | ||
3 | From: Bruce Rogers <brogers@suse.com> | ||
4 | Date: Wed, 6 May 2020 15:03:02 -0600 | ||
5 | Subject: [PATCH] [build] Be explicit about -fcommon compiler directive | ||
6 | |||
7 | gcc10 switched default behavior from -fcommon to -fno-common. Since | ||
8 | "__shared" relies on the legacy behavior, explicitly specify it. | ||
9 | |||
10 | Upstream-Status: backport | ||
11 | |||
12 | Signed-off-by: Bruce Rogers <brogers@suse.com> | ||
13 | Modified-by: Michael Brown <mcb30@ipxe.org> | ||
14 | Signed-off-by: Michael Brown <mcb30@ipxe.org> | ||
15 | --- | ||
16 | src/Makefile.housekeeping | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping | ||
20 | index 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 | -- | ||
32 | 2.17.1 | ||
33 | |||