25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
|
diff --git i/js/src/build/Makefile.in w/js/src/build/Makefile.in
|
||
|
index ee19104e0ef5..a0f06fd35a18 100644
|
||
|
--- i/js/src/build/Makefile.in
|
||
|
+++ w/js/src/build/Makefile.in
|
||
|
@@ -89,6 +89,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
|
||
|
diff --git i/js/src/build/moz.build w/js/src/build/moz.build
|
||
|
--- mozjs-68.4.2/js/src/build/moz.build.orig 2020-03-23 10:16:23.762000000 +0100
|
||
|
+++ mozjs-68.4.2/js/src/build/moz.build 2020-03-23 10:16:52.427000000 +0100
|
||
|
@@ -25,6 +25,7 @@
|
||
|
if CONFIG['JS_SHARED_LIBRARY']:
|
||
|
GeckoSharedLibrary('js', linkage=None)
|
||
|
SHARED_LIBRARY_NAME = CONFIG['JS_LIBRARY_NAME']
|
||
|
+ LDFLAGS += ['-Wl,-soname,lib{}.so.0'.format(SHARED_LIBRARY_NAME)]
|
||
|
|
||
|
# Ensure symbol versions of shared library on Linux do not conflict
|
||
|
# with those in libxul.
|