fix CHANGES entry
[openssl.git] / config
diff --git a/config b/config
index 91eb514cf76c0182337609cc86481c7935739b39..2d9ab4d2a4b102fe591824b46f82c4e0b0d01472 100755 (executable)
--- a/config
+++ b/config
@@ -822,6 +822,11 @@ esac
 #  options="$options -DATALLA"
 #fi
 
+! expr "$options" : '.*no\-asm' > /dev/null && \
+($CC -Wa,--help -c -o /dev/null -x assembler /dev/null 2>&1 | \
+ grep \\--noexecstack) 2>&1 > /dev/null && \
+  options="$options -Wa,--noexecstack"
+
 # gcc < 2.8 does not support -march=ultrasparc
 if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]
 then