openssl_0.9.8g.bb: fix generation of shared libraries (use correct CC)
authorJeremy Laine <jeremy.laine@m4x.org>
Mon, 12 May 2008 13:38:18 +0000 (13:38 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Mon, 12 May 2008 13:38:18 +0000 (13:38 +0000)
* while building the shared versions of libcrypto and libssl, the environment
  variables were lost, so we ended up using the wrong CC for linking

packages/openssl/openssl-0.9.8g/shared-libs.patch [new file with mode: 0644]
packages/openssl/openssl_0.9.8g.bb

diff --git a/packages/openssl/openssl-0.9.8g/shared-libs.patch b/packages/openssl/openssl-0.9.8g/shared-libs.patch
new file mode 100644 (file)
index 0000000..db98582
--- /dev/null
@@ -0,0 +1,45 @@
+diff -urN openssl-0.9.8g.orig/crypto/Makefile openssl-0.9.8g/crypto/Makefile
+--- openssl-0.9.8g.orig/crypto/Makefile        2006-02-04 02:48:41.000000000 +0100
++++ openssl-0.9.8g/crypto/Makefile     2008-05-12 15:17:03.000000000 +0200
+@@ -103,7 +103,7 @@
+ shared: buildinf.h lib subdirs
+       if [ -n "$(SHARED_LIBS)" ]; then \
+-              (cd ..; $(MAKE) $(SHARED_LIB)); \
++              (cd ..; $(MAKE) -e $(SHARED_LIB)); \
+       fi
+ libs:
+diff -urN openssl-0.9.8g.orig/Makefile.org openssl-0.9.8g/Makefile.org
+--- openssl-0.9.8g.orig/Makefile.org   2007-04-24 01:49:54.000000000 +0200
++++ openssl-0.9.8g/Makefile.org        2008-05-12 15:16:34.000000000 +0200
+@@ -246,7 +246,7 @@
+ libcrypto$(SHLIB_EXT): libcrypto.a
+       @if [ "$(SHLIB_TARGET)" != "" ]; then \
+-              $(MAKE) SHLIBDIRS=crypto build-shared; \
++              $(MAKE) -e SHLIBDIRS=crypto build-shared; \
+       else \
+               echo "There's no support for shared libraries on this platform" >&2; \
+               exit 1; \
+@@ -254,7 +254,7 @@
+ libssl$(SHLIB_EXT): libcrypto$(SHLIB_EXT) libssl.a
+       @if [ "$(SHLIB_TARGET)" != "" ]; then \
+-              $(MAKE) SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \
++              $(MAKE) -e SHLIBDIRS=ssl SHLIBDEPS='-lcrypto' build-shared; \
+       else \
+               echo "There's no support for shared libraries on this platform" >&2; \
+               exit 1; \
+diff -urN openssl-0.9.8g.orig/ssl/Makefile openssl-0.9.8g/ssl/Makefile
+--- openssl-0.9.8g.orig/ssl/Makefile   2007-10-11 16:36:59.000000000 +0200
++++ openssl-0.9.8g/ssl/Makefile        2008-05-12 15:17:26.000000000 +0200
+@@ -62,7 +62,7 @@
+ shared: lib
+       if [ -n "$(SHARED_LIBS)" ]; then \
+-              (cd ..; $(MAKE) $(SHARED_LIB)); \
++              (cd ..; $(MAKE) -e $(SHARED_LIB)); \
+       fi
+ files:
index 622fd2e..133283f 100644 (file)
@@ -2,9 +2,10 @@ inherit pkgconfig
 
 require openssl.inc
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI += "file://debian.patch;patch=1 \
-            file://configure-targets.patch;patch=1"
+            file://configure-targets.patch;patch=1 \
+            file://shared-libs.patch;patch=1"
 
 PARALLEL_MAKE = ""