comparison configure @ 264:928617270c79

- some platforms ingeniously use AFLAGS with CC so --noexecstack must be set as -Wa,--noexecstack
author Tassilo Philipp
date Thu, 25 May 2017 01:04:39 +0200
parents a8c9e3654062
children 050e60ed28c4
comparison
equal deleted inserted replaced
263:a8c9e3654062 264:928617270c79
217 cd "$BLDTOP" 217 cd "$BLDTOP"
218 # asm test file, with main and _main for portability. 218 # asm test file, with main and _main for portability.
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 used, ... Check makes use of the config written so far, so use '+='. 222 # on some other platforms only CFLAGS is the only one used, others use AFLAGS with cc and thus need -Wa,... Check
223 for f in "ASFLAGS+=-Wa,--noexecstack" "ACFLAGS+=-Wa,--noexecstack" "AFLAGS+=--noexecstack" "CFLAGS+=-Wa,--noexecstack"; do 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+=--noexecstack" "CFLAGS+=-Wa,--noexecstack"; do
224 # dummy makefile triggering inference rules, reflecting dyncall's build 225 # dummy makefile triggering inference rules, reflecting dyncall's build
225 make -f - <<MAKEFILE 226 make -f - <<MAKEFILE
226 include $C 227 include $C
227 $f 228 $f
228 # 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