FAQ/README: we are now using Git instead of CVS
[oweals/openssl.git] / config
diff --git a/config b/config
index 965884a6277b4b50599ee3db3fad00fca08ea8e6..2cb4613a408591b4d4b182694b3744ec2eddda74 100755 (executable)
--- a/config
+++ b/config
@@ -825,6 +825,12 @@ esac
 #  options="$options -DATALLA"
 #fi
 
+if expr "$options" : '.*no\-asm' > /dev/null; then :; else
+  sh -c "$CROSS_COMPILE${CC:-gcc} -Wa,--help -c -o /tmp/null.$$.o -x assembler /dev/null && rm /tmp/null.$$.o" 2>&1 | \
+  grep \\--noexecstack >/dev/null && \
+  options="$options -Wa,--noexecstack"
+fi
+
 # gcc < 2.8 does not support -march=ultrasparc
 if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]
 then