]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/ipxe-1b67a05-be-explicit-about-fcommon-compiler-directive.patch
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / src / patches / ipxe-1b67a05-be-explicit-about-fcommon-compiler-directive.patch
1 From f982a712979619dbae2c6e0d741757e2ce94be11 Mon Sep 17 00:00:00 2001
2 From: Bruce Rogers <brogers@suse.com>
3 Date: Wed, 6 May 2020 15:03:02 -0600
4 Subject: [PATCH] [build] Be explicit about -fcommon compiler directive
5
6 gcc10 switched default behavior from -fcommon to -fno-common. Since
7 "__shared" relies on the legacy behavior, explicitly specify it.
8
9 Signed-off-by: Bruce Rogers <brogers@suse.com>
10 Modified-by: Michael Brown <mcb30@ipxe.org>
11 Signed-off-by: Michael Brown <mcb30@ipxe.org>
12 ---
13 src/Makefile.housekeeping | 1 +
14 1 file changed, 1 insertion(+)
15
16 diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
17 index 66d6dd449..b6c61c112 100644
18 --- a/src/Makefile.housekeeping
19 +++ b/src/Makefile.housekeeping
20 @@ -418,6 +418,7 @@ CFLAGS += -Os
21 CFLAGS += -g
22 ifeq ($(CCTYPE),gcc)
23 CFLAGS += -ffreestanding
24 +CFLAGS += -fcommon
25 CFLAGS += -Wall -W -Wformat-nonliteral
26 HOST_CFLAGS += -Wall -W -Wformat-nonliteral
27 endif