diff options
-rw-r--r-- | recipes-extended/ipxe/files/build-be-explicit-about-fcommon-compiler-directive.patch | 33 | ||||
-rw-r--r-- | recipes-extended/ipxe/ipxe_git.bb | 1 |
2 files changed, 34 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 | |||
diff --git a/recipes-extended/ipxe/ipxe_git.bb b/recipes-extended/ipxe/ipxe_git.bb index fbaad309..d7c60ab0 100644 --- a/recipes-extended/ipxe/ipxe_git.bb +++ b/recipes-extended/ipxe/ipxe_git.bb | |||
@@ -15,6 +15,7 @@ SRC_URI = " \ | |||
15 | file://ipxe-fix-hostcc-nopie-cflags.patch \ | 15 | file://ipxe-fix-hostcc-nopie-cflags.patch \ |
16 | file://ipxe-intel-Avoid-spurious-compiler-warning-on-GCC-10.patch \ | 16 | file://ipxe-intel-Avoid-spurious-compiler-warning-on-GCC-10.patch \ |
17 | file://ipxe-golan-Add-explicit-type-casts-for-nodnic_queue_pair_.patch \ | 17 | file://ipxe-golan-Add-explicit-type-casts-for-nodnic_queue_pair_.patch \ |
18 | file://build-be-explicit-about-fcommon-compiler-directive.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | FILES_${PN} = "/usr/share/firmware/*.rom" | 21 | FILES_${PN} = "/usr/share/firmware/*.rom" |