summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-08-21 08:02:56 +0000
committerwiz <wiz@pkgsrc.org>2014-08-21 08:02:56 +0000
commitf0799a0edb61eb5358cd43552dafc4c1ace0d81c (patch)
tree2f8f96bcd42ad58707980097dc849327b0e1a36f
parent302e9fe574d1540ebc4d6adc59f1369997ee3b73 (diff)
downloadpkgsrc-f0799a0edb61eb5358cd43552dafc4c1ace0d81c.tar.gz
On AIX, openssl ignores $CC & defaults to using the aix-cc profile
& building with /usr/vac/bin/cc, add the necessary checks to Makefile to use the correct profile depending on what CC/ABI is set to. Patch from Sevan Janiyan in PR 49131, but moved a few lines to not affect Darwin.
-rw-r--r--security/openssl/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index a8d85d0ad15..93668c249ec 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.195 2014/08/07 01:29:45 obache Exp $
+# $NetBSD: Makefile,v 1.196 2014/08/21 08:02:56 wiz Exp $
DISTNAME= openssl-1.0.1i
MASTER_SITES= http://ftp.openssl.org/source/
@@ -89,6 +89,21 @@ SUBST_FILES.dl= Makefile apps/Makefile crypto/Makefile \
crypto/pkcs7/Makefile test/Makefile
SUBST_SED.dl= -e 's,^EX_LIBS=,EX_LIBS=${DL_LDFLAGS:Q} ,g'
+.elif ${OPSYS} == "AIX"
+CONFIGURE_SCRIPT= ./Configure
+.if defined(ABI) && ${ABI} == "64"
+.if !empty(CC_VERSION:Mgcc*)
+CONFIGURE_ARGS+= aix64-gcc
+.elif
+CONFIGURE_ARGS+= aix64-cc
+.endif
+.else
+.if !empty(CC_VERSION:Mgcc*)
+CONFIGURE_ARGS+= aix-gcc
+.elif
+CONFIGURE_ARGS+= aix-cc
+.endif
+.endif
.elif ${OPSYS} == "Interix"
SUBST_CLASSES+= soname