summaryrefslogtreecommitdiff
path: root/user/mozjs/1004_fix_pie_detection.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 /user/mozjs/1004_fix_pie_detection.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 'user/mozjs/1004_fix_pie_detection.patch')
-rw-r--r--user/mozjs/1004_fix_pie_detection.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/user/mozjs/1004_fix_pie_detection.patch b/user/mozjs/1004_fix_pie_detection.patch
deleted file mode 100644
index e24adf365..000000000
--- a/user/mozjs/1004_fix_pie_detection.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From: Jory A. Pratt <anarchy@gentoo.org>
-
-CFLAGS must contain -fPIC when checking the linker
-
-diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4
---- a/build/autoconf/compiler-opts.m4
-+++ b/build/autoconf/compiler-opts.m4
-@@ -205,23 +205,26 @@ MOZ_PIE=
-
- MOZ_ARG_ENABLE_BOOL(pie,
- [ --enable-pie Enable Position Independent Executables],
- MOZ_PIE=1,
- MOZ_PIE= )
-
- if test "$GNU_CC$CLANG_CC" -a -n "$MOZ_PIE"; then
- AC_MSG_CHECKING([for PIE support])
-+ _SAVE_CFLAGS=$CFLAGS
-+ CFLAGS="$CFLAGS -fPIC"
- _SAVE_LDFLAGS=$LDFLAGS
- LDFLAGS="$LDFLAGS $DSO_PIC_CFLAGS -pie"
- AC_TRY_LINK(,,AC_MSG_RESULT([yes])
- [MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -pie"],
- AC_MSG_RESULT([no])
- AC_MSG_ERROR([--enable-pie requires PIE support from the linker.]))
- LDFLAGS=$_SAVE_LDFLAGS
-+ CFLAGS=$_SAVE_CFLAGS
- fi
-
- AC_SUBST(MOZ_PROGRAM_LDFLAGS)
-
- dnl ASan assumes no symbols are being interposed, and when that happens,
- dnl it's not happy with it. Unconveniently, since Firefox is exporting
- dnl libffi symbols and Gtk+3 pulls system libffi via libwayland-client,
- dnl system libffi interposes libffi symbols that ASan assumes are in