config: detect if assembler supports --noexecstack and pass it down [from HEAD].

This commit is contained in:
Andy Polyakov 2011-07-15 19:59:18 +00:00
parent fe8629e1a5
commit f2e9070f26

4
config
View File

@ -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