summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-07-15 19:59:31 +0000
committerAndy Polyakov <appro@openssl.org>2011-07-15 19:59:31 +0000
commite0e0818e4b5fa9e0205ac7adb06f24b4eda83313 (patch)
treece8e17d8ffc40cdb399f25df6da3b0f1728917ee /config
parent82a5049f6a45a273b8119721e593a285ad6e6408 (diff)
config: detect if assembler supports --noexecstack and pass it down [from HEAD].
Diffstat (limited to 'config')
-rwxr-xr-xconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/config b/config
index b9d1c7aa26..7a958cb432 100755
--- a/config
+++ b/config
@@ -790,6 +790,10 @@ esac
# options="$options -DATALLA"
#fi
+($CC -Wa,--help -c -o /dev/null -x assembler /dev/null 2>&1 | \
+ grep \\--noexecstack) 2>&1 > /dev/null && \
+ options="$options -Wa,--noexecstack"
+
# gcc < 2.8 does not support -march=ultrasparc
if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]
then