summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2003-01-18 15:13:03 +0000
committerAndy Polyakov <appro@openssl.org>2003-01-18 15:13:03 +0000
commit726c2231431f811d12bdfcd83052eb62d1fc626b (patch)
tree98f7c4ff7394c1aa29b801f37e81914be4681f7b
parent59ae8c941916a2f8850c59638cb0ee4329d57b3e (diff)
Fix for AIX shared build, see RT#463.
-rwxr-xr-xConfigure4
-rwxr-xr-xconfig4
2 files changed, 6 insertions, 2 deletions
diff --git a/Configure b/Configure
index 77762cb2cd..3d74ceb105 100755
--- a/Configure
+++ b/Configure
@@ -440,9 +440,9 @@ my %table=(
# IBM's AIX.
"aix-cc", "cc:-O -DB_ENDIAN -qmaxmem=16384::(unknown):AIX::BN_LLONG RC4_CHAR:::",
"aix-gcc", "gcc:-O3 -DB_ENDIAN::(unknown):AIX::BN_LLONG RC4_CHAR:::",
-"aix43-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown):::BN_LLONG RC4_CHAR::::::::::dlfcn:",
+"aix43-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384::(unknown):::BN_LLONG RC4_CHAR::::::::::dlfcn:aix-shared:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::",
"aix43-gcc", "gcc:-O1 -DAIX -DB_ENDIAN::(unknown):::BN_LLONG RC4_CHAR::::::::::dlfcn:",
-"aix64-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384 -q64::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHAR::::::::::dlfcn::::::-X 64",
+"aix64-cc", "cc:-O -DAIX -DB_ENDIAN -qmaxmem=16384 -q64::(unknown):::SIXTY_FOUR_BIT_LONG RC4_CHAR::::::::::dlfcn:aix-shared::-q64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::-X 64",
#
# Cray T90 and similar (SDSC)
diff --git a/config b/config
index fe8a441b28..e72b982288 100755
--- a/config
+++ b/config
@@ -464,6 +464,10 @@ if [ "${SYSTEM}-${MACHINE}" = "Linux-alpha" ]; then
fi
fi
+if [ "${SYSTEM}" = "AIX" ]; then # favor vendor cc over gcc
+ (cc) 2>&1 | grep -iv "command not found" > /dev/null && CC=cc
+fi
+
CCVER=${CCVER:-0}
# read the output of the embedded GuessOS