slackware-current/source/l/mozjs52/patches/fix-soname.patch
Patrick J Volkerding 595bebf667 Mon Nov 19 02:46:11 UTC 2018
l/js185-1.0.0-x86_64-2.txz:  Removed.
l/libwebp-1.0.1-x86_64-1.txz:  Upgraded.
l/mozjs52-52.9.0esr-x86_64-1.txz:  Added.
  Required by the new version of polkit.
l/polkit-0.115-x86_64-1.txz:  Upgraded.
  Thanks to Robby Workman.
2018-11-19 08:59:43 +01:00

34 lines
967 B
Diff

From: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Date: Fri, 02 May 2014 22:20:45 +0200
Subject: fix soname
Add soname switch to linker, regardless of Operating System
Bug-Debian: http://bugs.debian.org/746705
---
config/rules.mk | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: mozjs52-52.2.1~artful1/config/rules.mk
===================================================================
--- mozjs52-52.2.1~artful1.orig/config/rules.mk
+++ mozjs52-52.2.1~artful1/config/rules.mk
@@ -418,7 +418,7 @@ endif # AIX
#
# Linux: add -Bsymbolic flag for components
#
-ifeq ($(OS_ARCH),Linux)
+#ifeq ($(OS_ARCH),Linux)
ifdef IS_COMPONENT
EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic
endif
@@ -426,7 +426,8 @@ ifdef LD_VERSION_SCRIPT
EXTRA_DSO_LDOPTS += -Wl,--version-script,$(LD_VERSION_SCRIPT)
EXTRA_DEPS += $(LD_VERSION_SCRIPT)
endif
-endif
+#endif
+EXTRA_DSO_LDOPTS += -Wl,-soname,lib$(JS_LIBRARY_NAME).so.0
ifdef SYMBOLS_FILE
ifeq ($(OS_TARGET),WINNT)