Commit e0e0818e authored by Andy Polyakov's avatar Andy Polyakov
Browse files

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

parent 82a5049f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -790,6 +790,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