summaryrefslogtreecommitdiff
path: root/legacy/mozjs/1002_drop_build_id.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/1002_drop_build_id.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/1002_drop_build_id.patch')
-rw-r--r--legacy/mozjs/1002_drop_build_id.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/legacy/mozjs/1002_drop_build_id.patch b/legacy/mozjs/1002_drop_build_id.patch
new file mode 100644
index 000000000..9f62abaea
--- /dev/null
+++ b/legacy/mozjs/1002_drop_build_id.patch
@@ -0,0 +1,33 @@
+From: Jory A. Pratt <anarchy@gentoo.org>
+
+We must drop build id as it causes conflicts when merging
+thunderbird/firefox/seamonkey on same system when using
+splitdebug
+
+diff --git a/js/src/old-configure.in b/js/src/old-configure.in
+--- a/js/src/old-configure.in
++++ b/js/src/old-configure.in
+@@ -478,23 +478,16 @@ if test "$GNU_CC"; then
+
+ AC_MSG_CHECKING([for -z relro option to ld])
+ _SAVE_LDFLAGS=$LDFLAGS
+ LDFLAGS="$LDFLAGS -Wl,-z,relro"
+ AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
+ AC_MSG_RESULT([no])
+ LDFLAGS=$_SAVE_LDFLAGS)
+
+- AC_MSG_CHECKING([for --build-id option to ld])
+- _SAVE_LDFLAGS=$LDFLAGS
+- LDFLAGS="$LDFLAGS -Wl,--build-id"
+- AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
+- AC_MSG_RESULT([no])
+- LDFLAGS=$_SAVE_LDFLAGS)
+-
+ _DEFINES_CFLAGS="-include $jsconfdefs -DMOZILLA_CLIENT"
+ _USE_CPP_INCLUDE_FLAG=1
+ fi
+
+ if test "$GNU_CXX"; then
+ _DEFINES_CXXFLAGS="-DMOZILLA_CLIENT -include $jsconfdefs"
+ _USE_CPP_INCLUDE_FLAG=1
+ fi