summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity/openssl/openssl.inc
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2012-01-12 17:30:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-18 13:10:06 +0000
commit9c32b62d6494139daf4bab3279779c392fead116 (patch)
treec8c922bb7af85b32870a53259449b845bfc5051b /meta/recipes-connectivity/openssl/openssl.inc
parent1dab754cb1ec942f86a7cf9758e6b5169e50bff3 (diff)
downloadopenembedded-core-9c32b62d6494139daf4bab3279779c392fead116.tar.gz
openembedded-core-9c32b62d6494139daf4bab3279779c392fead116.tar.bz2
openembedded-core-9c32b62d6494139daf4bab3279779c392fead116.zip
openssl: build always with -Wa,--noexecstack
There is no reason to disable exec-stack only for -native builds; binaries on the target will suffer from the same SELinux ACLs. OpenSSL does not use executable stack so this option can be disabled unconditionally. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl.inc')
-rw-r--r--meta/recipes-connectivity/openssl/openssl.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index af1922e1f6..f5b24324ba 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -18,12 +18,10 @@ SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
S = "${WORKDIR}/openssl-${PV}"
AR_append = " r"
+# Avoid binaries being marked as requiring an executable stack since it
+# doesn't(which causes and this causes issues with SELinux
CFLAG = "${@base_conditional('SITEINFO_ENDIANNESS', 'le', '-DL_ENDIAN', '-DB_ENDIAN', d)} \
- -DTERMIO ${CFLAGS} -Wall"
-
-# Avoid binaries being marked as requiring an executable stack (which causes
-# issues with SELinux on the host)
-CFLAG_append_class-native = " -Wa,--noexecstack"
+ -DTERMIO ${CFLAGS} -Wall -Wa,--noexecstack"
# -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom
CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}"