openssl +universal (ppc)

Gianluca Toso gtoso at presso.net
Wed Oct 24 12:41:38 PDT 2007


Hi,
I had change Makefile patch to compile openssl as
universal binary.

This is the patch patch :-)
-------------- next part --------------
--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl/files/patch-Makefiles-universal-i386	2007-04-17 18:53:05.000000000 +0200
+++ devel/openssl/files/patch-Makefiles-universal-i386	2007-10-23 22:32:46.000000000 +0200
@@ -4,20 +4,11 @@
  # PKCS1_CHECK - pkcs1 tests.
  
  CC= cc
--CFLAG= -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -fno-common
+-CFLAG= -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch i386 -O3 -fomit-frame-pointer -fno-common
 +CFLAG= -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -fno-common -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386
- DEPFLAG= -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_GMP -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 
- PEX_LIBS= 
+ DEPFLAG= -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_GMP -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SEED -DOPENSSL_NO_TLSEXT 
+ PEX_LIBS= -Wl,-search_paths_first
  EX_LIBS= -L/opt/local/lib  -lz
-@@ -142,7 +142,7 @@
- SHARED_SSL=libssl$(SHLIB_EXT)
- SHARED_LIBS=$(SHARED_CRYPTO) $(SHARED_SSL)
- SHARED_LIBS_LINK_EXTS=.$(SHLIB_MAJOR).dylib .dylib
--SHARED_LDFLAGS=-dynamiclib
-+SHARED_LDFLAGS=-dynamiclib -arch i386
- 
- GENERAL=        Makefile
- BASENAME=       openssl
 --- Makefile.shared.orig	2007-04-01 18:16:24.000000000 +0200
 +++ Makefile.shared	2007-04-01 18:16:55.000000000 +0200
 @@ -11,8 +11,8 @@
--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl/files/patch-Makefiles-universal-ppc	2007-04-17 18:53:05.000000000 +0200
+++ devel/openssl/files/patch-Makefiles-universal-ppc	2007-10-23 22:32:33.000000000 +0200
@@ -4,20 +4,11 @@
  # PKCS1_CHECK - pkcs1 tests.
  
  CC= cc
--CFLAG= -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -DB_ENDIAN
+-CFLAG= -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch ppc -O3 -DB_ENDIAN
 +CFLAG= -fPIC -fno-common -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -DB_ENDIAN -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc
- DEPFLAG= -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_GMP -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 
- PEX_LIBS= 
+ DEPFLAG= -DOPENSSL_NO_CAMELLIA -DOPENSSL_NO_GMP -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SEED -DOPENSSL_NO_TLSEXT 
+ PEX_LIBS= -Wl,-search_paths_first
  EX_LIBS= -L/opt/local/lib  -lz
-@@ -142,7 +142,7 @@
- SHARED_SSL=libssl$(SHLIB_EXT)
- SHARED_LIBS=$(SHARED_CRYPTO) $(SHARED_SSL)
- SHARED_LIBS_LINK_EXTS=.$(SHLIB_MAJOR).dylib .dylib
--SHARED_LDFLAGS=-dynamiclib
-+SHARED_LDFLAGS=-dynamiclib -arch ppc
- 
- GENERAL=        Makefile
- BASENAME=       openssl
 --- Makefile.shared.orig	2007-04-01 18:16:24.000000000 +0200
 +++ Makefile.shared	2007-04-01 18:16:55.000000000 +0200
 @@ -11,8 +11,8 @@


More information about the macports-users mailing list