summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/elfutils/elfutils-0.148/0002-Make-it-build-with-GCC-7-and-compile-time-hardening-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/elfutils/elfutils-0.148/0002-Make-it-build-with-GCC-7-and-compile-time-hardening-.patch')
-rw-r--r--recipes-devtools/elfutils/elfutils-0.148/0002-Make-it-build-with-GCC-7-and-compile-time-hardening-.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-devtools/elfutils/elfutils-0.148/0002-Make-it-build-with-GCC-7-and-compile-time-hardening-.patch b/recipes-devtools/elfutils/elfutils-0.148/0002-Make-it-build-with-GCC-7-and-compile-time-hardening-.patch
new file mode 100644
index 0000000..68d14b6
--- /dev/null
+++ b/recipes-devtools/elfutils/elfutils-0.148/0002-Make-it-build-with-GCC-7-and-compile-time-hardening-.patch
@@ -0,0 +1,32 @@
1From 5dcd8e331af448e3adcb9ed15a38762a912a8267 Mon Sep 17 00:00:00 2001
2From: Peter Kjellerstedt <pkj@axis.com>
3Date: Sat, 16 Sep 2017 15:12:37 +0200
4Subject: [PATCH 2/2] Make it build with GCC 7 and compile time hardening
5 enabled
6
7This avoids the following error:
8
9cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
10
11Upstream-Status: Inappropriate [legacy version]
12Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
13---
14 config/eu.am | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/config/eu.am b/config/eu.am
18index 8066d7f..7de66b0 100644
19--- a/config/eu.am
20+++ b/config/eu.am
21@@ -33,7 +33,7 @@ INCLUDES = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..
22 AM_CFLAGS = -std=gnu99 -Wall -Wshadow \
23 $(if $($(*F)_no_Werror),,-Werror) \
24 $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
25- $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) \
26+ $(if $($(*F)_no_Wformat),-Wno-format -Wno-format-security,-Wformat=2) \
27 $($(*F)_CFLAGS)
28
29 if MUDFLAP
30--
312.12.0
32