# HG changeset patch # User Tassilo Philipp # Date 1495667079 -7200 # Node ID 928617270c793296d1aa99c3c89afa3258c66cdb # Parent a8c9e365406240a3522c4003c493118c05af6ba8 - some platforms ingeniously use AFLAGS with CC so --noexecstack must be set as -Wa,--noexecstack diff -r a8c9e3654062 -r 928617270c79 configure --- a/configure Thu May 25 00:52:59 2017 +0200 +++ b/configure Thu May 25 01:04:39 2017 +0200 @@ -219,8 +219,9 @@ (echo '.text';(echo '.globl main';echo 'main:') | sed 'p;s/m/_m/') > $RWXTESTPREFIX.$s # Check var to be used, which depends on inference rules of this platform. E.g. ASFLAGS is only common on GNU, and - # on some other platforms only CFLAGS is used, ... Check makes use of the config written so far, so use '+='. - for f in "ASFLAGS+=-Wa,--noexecstack" "ACFLAGS+=-Wa,--noexecstack" "AFLAGS+=--noexecstack" "CFLAGS+=-Wa,--noexecstack"; do + # on some other platforms only CFLAGS is the only one used, others use AFLAGS with cc and thus need -Wa,... Check + # makes use of the config written so far, so use '+=' to not overwrite vars. + for f in "ASFLAGS+=-Wa,--noexecstack" "ACFLAGS+=-Wa,--noexecstack" "AFLAGS+=--noexecstack" "AFLAGS+=--noexecstack" "CFLAGS+=-Wa,--noexecstack"; do # dummy makefile triggering inference rules, reflecting dyncall's build make -f - <