aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/ssiapi/ssiapi
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-06-25 22:34:45 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-01 09:59:25 +0200
commit81a3addfe5b74bd5779ab9cd8fe047d348ab8c25 (patch)
tree46496f45113b7c7c1635cde80c17f2e4f8173fb7 /meta-oe/recipes-support/ssiapi/ssiapi
parentbd66426dc33b66d9b551c48a8091b939126ce8b4 (diff)
downloadmeta-openembedded-contrib-81a3addfe5b74bd5779ab9cd8fe047d348ab8c25.tar.gz
ssiapi: Fix build with hardening flags
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/ssiapi/ssiapi')
-rw-r--r--meta-oe/recipes-support/ssiapi/ssiapi/configure-cflags.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/ssiapi/ssiapi/configure-cflags.patch b/meta-oe/recipes-support/ssiapi/ssiapi/configure-cflags.patch
new file mode 100644
index 0000000000..d45be590c7
--- /dev/null
+++ b/meta-oe/recipes-support/ssiapi/ssiapi/configure-cflags.patch
@@ -0,0 +1,21 @@
+Do not override flags thereby respect the flags coming from environment,
+e.g. we need some optimization level turned on when security flags are enabled
+without this change, the build would fail
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Index: ssiapi.1.0.1/configure.ac
+===================================================================
+--- ssiapi.1.0.1.orig/configure.ac
++++ ssiapi.1.0.1/configure.ac
+@@ -15,11 +15,6 @@ AC_SUBST(VERSION)
+ AM_INIT_AUTOMAKE(ssi, ${VERSION})
+ AM_CONFIG_HEADER(config.h)
+
+-dnl Set the language we use
+-CPPFLAGS="-g3 -gdwarf-2 -Wall -Werror -D_GNU_SOURCE"
+-CFLAGS="-std=gnu99"
+-CXXFLAGS="-std=gnu++98"
+-
+ dnl Automake 1.11 - silent build rules
+ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+