diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-07 19:07:39 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-07 19:07:39 +0000 |
commit | 59aa5ebb76efd757f107e61bb4cceb0a167c727e (patch) | |
tree | 2938d3db37170cccba266cf0ae899f479bbb99ad /user/mozjs/1004_fix_pie_detection.patch | |
parent | bbcfbb2837243b567861c0f37961bec1cb3cb17e (diff) | |
download | packages-59aa5ebb76efd757f107e61bb4cceb0a167c727e.tar.gz packages-59aa5ebb76efd757f107e61bb4cceb0a167c727e.tar.bz2 packages-59aa5ebb76efd757f107e61bb4cceb0a167c727e.tar.xz packages-59aa5ebb76efd757f107e61bb4cceb0a167c727e.zip |
user/mozjs: bump to 60.5.2
Diffstat (limited to 'user/mozjs/1004_fix_pie_detection.patch')
-rw-r--r-- | user/mozjs/1004_fix_pie_detection.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/mozjs/1004_fix_pie_detection.patch b/user/mozjs/1004_fix_pie_detection.patch new file mode 100644 index 000000000..e24adf365 --- /dev/null +++ b/user/mozjs/1004_fix_pie_detection.patch @@ -0,0 +1,34 @@ +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 |