summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-07-15 19:59:18 +0000
committerAndy Polyakov <appro@openssl.org>2011-07-15 19:59:18 +0000
commitf2e9070f267a7653ffb78c8566b60e8a0cea58de (patch)
tree04f5103356edc9d5731f19a32f52e89d1bb0b32d /config
parentfe8629e1a515d822323a0d4bb8e0065ddedb38fd (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 965884a627..cf64ec563e 100755
--- a/config
+++ b/config
@@ -825,6 +825,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