Fix for AIX shared build, see RT#463.
authorAndy Polyakov <appro@openssl.org>
Sat, 18 Jan 2003 13:10:23 +0000 (13:10 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 18 Jan 2003 13:10:23 +0000 (13:10 +0000)
Configure
Makefile.org
config

index 8d55a4352e1ce65ca40620264d0475d41391faa3..893ab0218ec82ef056d12d3ddbf224ae1a83d4e2 100755 (executable)
--- 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)
index 546222dcc72a8af82e37edd55e36815fe340434c..2a0d6a68ce85844dd60b1d442ccd6dd741fa0ec0 100644 (file)
@@ -504,9 +504,10 @@ SHAREDCMD=$(CC)
 do_aix-shared:
        libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
        ( set -x; \
-         ld -r -o $$i.o $(ALLSYMSFLAG) lib$$i.a && \
+         ld -r -o lib$$i.o $(ALLSYMSFLAG) lib$$i.a && \
          ( nm -Pg lib$$i.o | grep ' [BD] ' | cut -f1 -d' ' > lib$$i.exp; \
-           $(SHAREDCMD) $(SHAREDFLAG) -o lib$$i.so lib$$i.o \
+           $(SHAREDCMD) $(SHAREDFLAGS) \
+               -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib$$i.o \
                $$libs ${EX_LIBS} ) ) \
        || exit 1; \
        libs="$$libs -l$$i"; \
diff --git a/config b/config
index 78dd3b1b4d8d040028334f9f37891132b95863fb..dc03e00c927961e911d7dddaabb3ce53b3c290cc 100755 (executable)
--- 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