From: Andy Polyakov Date: Wed, 13 Jul 2011 14:23:19 +0000 (+0000) Subject: config: detect if assembler supports --noexecstack and pass it down. X-Git-Tag: OpenSSL-fips-2_0-rc1~259 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2966c2ec31e81187da3fbbe1499a6aa3acfd355f;p=oweals%2Fopenssl.git config: detect if assembler supports --noexecstack and pass it down. --- diff --git a/config b/config index 63edfd6123..e82868721e 100755 --- a/config +++ b/config @@ -840,6 +840,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