35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
|
diff --git a/config/rules.mk b/config/rules.mk
|
||
|
--- a/config/rules.mk
|
||
|
+++ b/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)
|
||
|
diff --git a/js/src/Makefile.in b/js/src/Makefile.in
|
||
|
--- a/js/src/Makefile.in
|
||
|
+++ b/js/src/Makefile.in
|
||
|
@@ -222,6 +222,8 @@ ifneq (,$(REAL_LIBRARY))
|
||
|
endif
|
||
|
ifneq (,$(SHARED_LIBRARY))
|
||
|
$(SYSINSTALL) $(SHARED_LIBRARY) $(DESTDIR)$(libdir)
|
||
|
+ mv -f $(DESTDIR)$(libdir)/$(SHARED_LIBRARY) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY).0
|
||
|
+ ln -s $(SHARED_LIBRARY).0 $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
|
||
|
ifeq ($(OS_ARCH),Darwin)
|
||
|
install_name_tool -id $(abspath $(libdir)/$(SHARED_LIBRARY)) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
|
||
|
endif
|