void-packages/srcpkgs/openssl/patches/fix-soname-and-rpath.patch
Juan RP acd00daf7f openssl: update to 1.0.0, bump abi_depends.
--HG--
extra : convert_revision : 05ffce8cf6e39227869ff1d91a8852bca1c5d8c3
2010-04-09 18:26:37 +02:00

17 lines
830 B
Diff

Do not hardcode rpath into binaries and do not use full version for
the soname, just the major version.
--- Makefile.shared.orig 2010-04-09 15:36:01.171506321 +0200
+++ Makefile.shared 2010-04-09 15:41:25.848516655 +0200
@@ -151,9 +151,9 @@ DO_GNU_SO=$(CALC_VERSIONS); \
SHLIB_SUFFIX=; \
ALLSYMSFLAGS='-Wl,--whole-archive'; \
NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
- SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX"
+ SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB.1$$SHLIB_SUFFIX"
-DO_GNU_APP=LDFLAGS="$(CFLAGS) -Wl,-rpath,$(LIBRPATH)"
+DO_GNU_APP=LDFLAGS="$(CFLAGS)"
#This is rather special. It's a special target with which one can link
#applications without bothering with any features that have anything to