From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-oe][PATCH 6/7] ssiapi: Fix build with hardening flags
Date: Sun, 25 Jun 2017 22:34:45 -0700 [thread overview]
Message-ID: <20170626053446.37959-6-raj.khem@gmail.com> (raw)
In-Reply-To: <20170626053446.37959-1-raj.khem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../ssiapi/ssiapi/configure-cflags.patch | 21 +++++++++++++++++++++
meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb | 2 ++
2 files changed, 23 insertions(+)
create mode 100644 meta-oe/recipes-support/ssiapi/ssiapi/configure-cflags.patch
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 000000000..d45be590c
--- /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])])
+
diff --git a/meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb b/meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb
index f3c1fc43a..339637087 100644
--- a/meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb
+++ b/meta-oe/recipes-support/ssiapi/ssiapi_1.0.1.bb
@@ -17,6 +17,7 @@ SRC_URI = "http://sourceforge.net/projects/irstessi/files/${BPN}.${PV}.tgz \
file://0004-engine-Fix-indentation-and-missing-semi-colon.patch \
file://0005-engine-Define-SENTINEL.patch \
file://0006-tools-Add-missing-includes-and-use-realpath-instead-.patch \
+ file://configure-cflags.patch \
"
SRC_URI[md5sum] = "02f16d7cbd30d28034093212906591f5"
SRC_URI[sha256sum] = "e10d283b0f211afb8ebd0bde87c097769613d30a052cdf164753e35e803264c7"
@@ -24,6 +25,7 @@ SRC_URI[sha256sum] = "e10d283b0f211afb8ebd0bde87c097769613d30a052cdf164753e35e80
S ="${WORKDIR}/${BPN}.${PV}"
inherit autotools-brokensep
+CXXFLAGS="-std=gnu++98 -D_GNU_SOURCE"
do_configure_prepend(){
./autogen.sh
--
2.13.1
next prev parent reply other threads:[~2017-06-26 5:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-26 5:34 [meta-oe][PATCH 1/7] live555: Define XLOCALE_NOT_USED for glibc too Khem Raj
2017-06-26 5:34 ` [meta-networking][PATCH 2/7] squid: Fix build with hardening Khem Raj
2017-06-26 5:34 ` [meta-networking][PATCH 3/7] ruli: FIx build with hardening flags Khem Raj
2017-06-26 5:34 ` [meta-oe][PATCH 4/7] gpm: Use sigemptyset() API for glibc as well Khem Raj
2017-06-26 5:34 ` [meta-oe][PATCH 5/7] hwloc: Inherit pkgconfig Khem Raj
2017-06-26 14:22 ` Khem Raj
2017-06-26 14:24 ` Martin Jansa
2017-06-26 5:34 ` Khem Raj [this message]
2017-06-26 5:34 ` [meta-oe][PATCH 7/7] crash: Upgrade to 7.1.9 Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170626053446.37959-6-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox