changeset 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
files configure
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 - <<MAKEFILE
 include $C