From 90a97c3134fd57270f52a001dbd311dca06c9c38 Mon Sep 17 00:00:00 2001 From: sobomax Date: Sun, 22 Apr 2001 18:42:35 +0000 Subject: 1. In addition to OSVERSION test, check for existence of /usr/lib/libssl.a and don't mark BROKEN if it doesn't exist. 2. Provide a workaround for inability of recent gcc to link shared library when -Wl,-whole-archive ld(1) option is used. This should make possible to build the port on recent -stable or -current. --- security/openssl/Makefile | 2 +- security/openssl/files/patch-ab | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'security/openssl') diff --git a/security/openssl/Makefile b/security/openssl/Makefile index f5712e0..154d213 100644 --- a/security/openssl/Makefile +++ b/security/openssl/Makefile @@ -17,7 +17,7 @@ MASTER_SITES= http://www.openssl.org/source/ \ MAINTAINER= ports@FreeBSD.org .include -.if ${OSVERSION} >= 400014 +.if ${OSVERSION} >= 400014 && exists(/usr/lib/libssl.a) FORBIDDEN= "OpenSSL is already in the base system" .endif diff --git a/security/openssl/files/patch-ab b/security/openssl/files/patch-ab index 8ad463b..8fbe55b 100644 --- a/security/openssl/files/patch-ab +++ b/security/openssl/files/patch-ab @@ -1,6 +1,9 @@ ---- Makefile.org.orig Sun Aug 8 12:29:52 1999 -+++ Makefile.org Sun Nov 7 18:33:37 1999 -@@ -164,7 +164,7 @@ + +$FreeBSD$ + +--- Makefile.org.orig Thu Mar 16 21:46:20 2000 ++++ Makefile.org Sun Apr 22 19:50:06 2001 +@@ -165,7 +165,7 @@ ONEDIRS=out tmp EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS WDIRS= windows @@ -9,7 +12,7 @@ GENERAL= Makefile BASENAME= openssl -@@ -187,6 +187,21 @@ +@@ -189,6 +189,21 @@ do \ (cd $$i && echo "making all in $$i..." && \ $(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' all ) || exit 1; \ @@ -20,7 +23,7 @@ + rm -f lib$$i.a lib$$i.so \ + lib$$i.so.${SHLIBVER}; \ + ${MAKE} CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='-fPIC ${CFLAG}' SDIRS='${SDIRS}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' DIRS=$$i clean all || exit 1; \ -+ ( set -x; ${CC} -shared -o lib$$i.so.${SHLIBVER} \ ++ ( set -x; ${CC} -nodefaultlibs -shared -o lib$$i.so.${SHLIBVER} \ + -Wl,-S,-soname=lib$$i.so.${SHLIBVER} \ + -Wl,${WHOLE_ARCHIVE_FLAG} lib$$i.a ) || exit 1; \ + rm -f lib$$i.a; (cd $$i ; ${MAKE} clean) || exit 1 ;\ -- cgit v1.1