config: don't add -Wa options with no-asm.
[openssl.git] / config
diff --git a/config b/config
index 32bec89db2e0a102bb06cc91cdd1385b28755879..06bebb8aafceb47fcb46d303c2767b7818becee2 100755 (executable)
--- a/config
+++ b/config
@@ -841,6 +841,7 @@ 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"