From: Andy Polyakov Date: Wed, 13 Jul 2011 14:25:22 +0000 (+0000) Subject: config: config: detect if assembler supports --noexecstack and pass it down X-Git-Tag: OpenSSL_1_0_1-beta1~202 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aade369737aace935de5db9ef3f85cf91ba65c66;p=oweals%2Fopenssl.git config: config: detect if assembler supports --noexecstack and pass it down [from HEAD]. --- diff --git a/config b/config index 91eb514cf7..d7347cd57f 100755 --- a/config +++ b/config @@ -822,6 +822,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