summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-10-14 17:28:10 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-10-14 17:28:10 +0000
commit1fb2e0f940fa77b3b62544a7ce2f589e5cc05826 (patch)
treee4027c3c6d2b0fb77b7be29645b6ef75709f0217 /config
parent41a846c694f93b073798bc7dd78a3cb465a27485 (diff)
downloadopenssl-new-1fb2e0f940fa77b3b62544a7ce2f589e5cc05826.tar.gz
Allow override of GCCVER and noexecstack checking from environment.
Vxworks support.
Diffstat (limited to 'config')
-rwxr-xr-xconfig17
1 files changed, 14 insertions, 3 deletions
diff --git a/config b/config
index 06bebb8aaf..7a40df5774 100755
--- a/config
+++ b/config
@@ -411,7 +411,9 @@ exit 0
# this is where the translation occurs into SSLeay terms
# ---------------------------------------------------------------------------
-GCCVER=`(gcc -dumpversion) 2>/dev/null`
+if [ -z "$GCCVER" ]; then
+ GCCVER=`(gcc -dumpversion) 2>/dev/null`
+fi
if [ "$GCCVER" != "" ]; then
# then strip off whatever prefix egcs prepends the number with...
# Hopefully, this will work for any future prefixes as well.
@@ -589,6 +591,9 @@ case "$GUESSOS" in
ppc-*-linux2) OUT="linux-ppc" ;;
ppc60x-*-vxworks*) OUT="vxworks-ppc60x" ;;
ppcgen-*-vxworks*) OUT="vxworks-ppcgen" ;;
+ pentium-*-vxworks*) OUT="vxworks-pentium" ;;
+ simlinux-*-vxworks*) OUT="vxworks-simlinux" ;;
+ mips-*-vxworks*) OUT="vxworks-mips";;
ia64-*-linux?) OUT="linux-ia64" ;;
sparc64-*-linux2)
echo "WARNING! If you *know* that your GNU C supports 64-bit/V9 ABI"
@@ -841,10 +846,16 @@ esac
# options="$options -DATALLA"
#fi
-! expr "$options" : '.*no\-asm' > /dev/null && \
-($CC -Wa,--help -c -o /dev/null -x assembler /dev/null 2>&1 | \
+if [ -n "$CONFIG_OPTIONS" ]; then
+ options="$options $CONFIG_OPTIONS"
+fi
+
+if [ -z "$CONFIG_SKIP_NOEXECSTACK" ]; then
+ ! 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"
+fi
# gcc < 2.8 does not support -march=ultrasparc
if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ]