Skip to content

Commit

Permalink
config: detect if assembler supports --noexecstack and pass it down.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Polyakov committed Jul 13, 2011
1 parent 4195a36 commit 2966c2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2966c2e

Please sign in to comment.