The config script has a check on aix that causes it to prefer the
vendor cc if it is available, but it assumes that cc is the vendor cc,
and not a link/wrapper for gcc. This is a problem for pkgsrc in
particular. By assuming cc is not gcc, config picks the wrong LDFLAGS
and openssl fails to build. Below is a patch that checks if cc is
gcc, and only sets CC=cc if it is not. Also, I changed the "not
found" check slightly. The way that it was written caused "config"
and "sh -x config" to give different results, which isn't nice for
troubleshooting.
Due to the triviality of this patch, is a TSU notification necessary?
This patch is against openssl-1.0.0c.
--- config.orig 2011-01-21 20:27:03.000000000 -0600
+++ config 2011-01-21 20:42:09.000000000 -0600
@@ -482,7 +482,9 @@
fi
if [ "${SYSTEM}" = "AIX" ]; then # favor vendor cc over gcc
- (cc) 2>&1 | grep -iv "not found" > /dev/null && CC=cc
+ if ! (cc) 2>&1 | grep -qi "not found" ; then
+ (cc -v) 2>&1 | grep -qi gcc || CC=cc
+ fi
fi
CCVER=${CCVER:-0}
Here's a patch against openssl-0.9.8q.
--- config.orig 2011-01-21 21:10:00.000000000 -0600
+++ config 2011-01-21 21:10:04.000000000 -0600
@@ -474,7 +474,9 @@
fi
if [ "${SYSTEM}" = "AIX" ]; then # favor vendor cc over gcc
- (cc) 2>&1 | grep -iv "not found" > /dev/null && CC=cc
+ if ! (cc) 2>&1 | grep -qi "not found" ; then
+ (cc -v) 2>&1 | grep -qi gcc || CC=cc
+ fi
fi
CCVER=${CCVER:-0}
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]