summaryrefslogtreecommitdiff
path: root/legacy/mozjs/0003-build-Fix-library-install-name-on-macOS.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-12-04 05:56:26 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-12-07 20:50:21 -0600
commitf6153b23bf3372d6d8093c2a8ef158d626f75018 (patch)
treec0b0449ccacadfc932472abdfbced1a3ab2e6876 /legacy/mozjs/0003-build-Fix-library-install-name-on-macOS.patch
parent7a2994761b1b0c34f270a808330d297dfd0d5eb2 (diff)
downloadpackages-f6153b23bf3372d6d8093c2a8ef158d626f75018.tar.gz
packages-f6153b23bf3372d6d8093c2a8ef158d626f75018.tar.bz2
packages-f6153b23bf3372d6d8093c2a8ef158d626f75018.tar.xz
packages-f6153b23bf3372d6d8093c2a8ef158d626f75018.zip
user/mozjs: Move to legacy/
We do not need years-old SpiderMonkey any more.
Diffstat (limited to 'legacy/mozjs/0003-build-Fix-library-install-name-on-macOS.patch')
-rw-r--r--legacy/mozjs/0003-build-Fix-library-install-name-on-macOS.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/legacy/mozjs/0003-build-Fix-library-install-name-on-macOS.patch b/legacy/mozjs/0003-build-Fix-library-install-name-on-macOS.patch
new file mode 100644
index 000000000..7d66d5aac
--- /dev/null
+++ b/legacy/mozjs/0003-build-Fix-library-install-name-on-macOS.patch
@@ -0,0 +1,30 @@
+From fd8fc6e7b8760c961be7a3b9c6559d15f5ad008f Mon Sep 17 00:00:00 2001
+From: Philip Chimento <philip.chimento@gmail.com>
+Date: Wed, 5 Jul 2017 22:44:18 -0700
+Subject: [PATCH 03/10] build: Fix library install name on macOS
+
+In order for the library to work under JHbuild, it has to have an install
+name with an absolute path, since it will be installed in a shared
+location.
+
+https://bugzilla.mozilla.org/show_bug.cgi?id=1379536
+---
+ config/rules.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/config/rules.mk b/config/rules.mk
+index a21128cf..d88bada3 100644
+--- a/config/rules.mk
++++ b/config/rules.mk
+@@ -352,7 +352,7 @@ else
+ ifdef MOZ_IOS
+ _LOADER_PATH := @rpath
+ else
+-_LOADER_PATH := @executable_path
++_LOADER_PATH := $(abspath $(prefix))/lib
+ endif
+ EXTRA_DSO_LDOPTS += -dynamiclib -install_name $(_LOADER_PATH)/$(SHARED_LIBRARY) -compatibility_version 1 -current_version 1 -single_module
+ endif
+--
+2.13.0
+