summaryrefslogtreecommitdiff
path: root/security/openssl
diff options
context:
space:
mode:
authortron <tron>2007-04-24 14:10:37 +0000
committertron <tron>2007-04-24 14:10:37 +0000
commitc313b4035753bca29da93df4f4d792e3a1deaf3b (patch)
tree804365beb0535a2d85bd84867c1637848081c637 /security/openssl
parent89ab3ca9e85ff30ed2706253ef2e76e00d44d591 (diff)
downloadpkgsrc-c313b4035753bca29da93df4f4d792e3a1deaf3b.tar.gz
Use all necessary means to convince OpenSSL's "special" build system
to link with the "dl" library under Mac OS X if necessary. This should finally fix PR pkg/36086.
Diffstat (limited to 'security/openssl')
-rw-r--r--security/openssl/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index ef95b8e8043..c4666f8f9c2 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.122 2007/04/18 14:11:33 tron Exp $
+# $NetBSD: Makefile,v 1.123 2007/04/24 14:10:37 tron Exp $
OPENSSL_SNAPSHOT?= # empty
OPENSSL_STABLE?= # empty
@@ -77,6 +77,15 @@ CONFIGURE_ARGS+= irix64-mips4-gcc
CONFIGURE_ARGS+= irix64-mips4-cc
. endif
. endif
+.elif ${OPSYS} == "Darwin"
+.include "../../mk/dlopen.buildlink3.mk"
+
+SUBST_CLASSES+= dl
+SUBST_MESSAGE.dl= Adding dynmamic link compatibility library.
+SUBST_STAGE.dl= post-configure
+SUBST_FILES.dl= Makefile apps/Makefile crypto/Makefile \
+ crypto/pkcs7/Makefile fips/Makefile test/Makefile
+SUBST_SED.dl= -e "s,^EX_LIBS=,EX_LIBS=${BUILDLINK_LDFLAGS.dlcompat} ,g"
.endif
.include "../../security/openssl/options.mk"
@@ -104,8 +113,6 @@ CONF_FILES= ${PREFIX}/share/examples/openssl/openssl.cnf \
${PKG_SYSCONFDIR}/openssl.cnf
OWN_DIRS= ${PKG_SYSCONFDIR}/certs ${PKG_SYSCONFDIR}/private
-DL_AUTO_VARS= yes
-
# Some shells don't accept empty word lists in for loops. For those
# Makefiles where this occurs, edit the file so that we avoid running
# the loop.
@@ -124,5 +131,4 @@ pre-configure:
done
cd ${WRKSRC} && ${PERL5} util/perlpath.pl ${PERL5}
-.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"