comparison configure @ 266:91fd7be165f1

- also testing no flags at all, for asflags rw- detection
author Tassilo Philipp
date Thu, 25 May 2017 02:13:32 +0200
parents 050e60ed28c4
children f8fe0f87b7c1
comparison
equal deleted inserted replaced
265:050e60ed28c4 266:91fd7be165f1
219 (echo '.text';(echo '.globl main';echo 'main:') | sed 'p;s/m/_m/') > $RWXTESTPREFIX.$s 219 (echo '.text';(echo '.globl main';echo 'main:') | sed 'p;s/m/_m/') > $RWXTESTPREFIX.$s
220 220
221 # Check var to be used, which depends on inference rules of this platform. E.g. ASFLAGS is only common on GNU, and 221 # Check var to be used, which depends on inference rules of this platform. E.g. ASFLAGS is only common on GNU, and
222 # on some other platforms only CFLAGS is the only one used, others use AFLAGS with cc and thus need -Wa,... Check 222 # on some other platforms only CFLAGS is the only one used, others use AFLAGS with cc and thus need -Wa,... Check
223 # makes use of the config written so far, so use '+=' to not overwrite vars. 223 # makes use of the config written so far, so use '+=' to not overwrite vars.
224 for f in "ASFLAGS+=-Wa,--noexecstack" "ACFLAGS+=-Wa,--noexecstack" "AFLAGS+=--noexecstack" "AFLAGS+=-Wa,--noexecstack" "CFLAGS+=-Wa,--noexecstack"; do 224 for f in "" "ASFLAGS+=-Wa,--noexecstack" "ACFLAGS+=-Wa,--noexecstack" "AFLAGS+=--noexecstack" "AFLAGS+=-Wa,--noexecstack" "CFLAGS+=-Wa,--noexecstack"; do
225 # dummy makefile triggering inference rules, reflecting dyncall's build 225 # dummy makefile triggering inference rules, reflecting dyncall's build
226 make -f - <<MAKEFILE 226 make -f - <<MAKEFILE
227 include $C 227 include $C
228 $f 228 $f
229 # Force dependency via .o, to avoid .[sS].out rules that might be set - also set command as not all platforms set .o.out 229 # Force dependency via .o, to avoid .[sS].out rules that might be set - also set command as not all platforms set .o.out