From f2e9070f267a7653ffb78c8566b60e8a0cea58de Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 15 Jul 2011 19:59:18 +0000 Subject: [PATCH] config: detect if assembler supports --noexecstack and pass it down [from HEAD]. --- config | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.25.1