View | Details | Raw Unified | Return to bug 233707 | Differences between
and this patch

Collapse All | Expand All

(-)www/firefox/files/patch-build_autoconf_compiler-opts.m4 (+11 lines)
Line 0 Link Here
1
--- build/autoconf/compiler-opts.m4.orig	2019-02-28 01:18:21.000000000 +0300
2
+++ build/autoconf/compiler-opts.m4	2019-03-07 00:38:23.687807000 +0300
3
@@ -153,7 +153,7 @@
4
             [echo 'int foo() {return 42;}' \
5
                   'int bar() {return 1;}' \
6
                   'int main() {return foo();}' > conftest.${ac_ext}
7
-            if AC_TRY_COMMAND([${CC-cc} -o conftest.${ac_objext} $CFLAGS $MOZ_DEBUG_FLAGS -c conftest.${ac_ext} 1>&2]) &&
8
+            if AC_TRY_COMMAND([${CC-cc} -o conftest.${ac_objext} -fPIC $CFLAGS $MOZ_DEBUG_FLAGS -c conftest.${ac_ext} 1>&2]) &&
9
                 AC_TRY_COMMAND([${CC-cc} -o conftest${ac_exeext} $LDFLAGS $MOZ_DEBUG_FLAGS -Wl,--gc-sections conftest.${ac_objext} $LIBS 1>&2]) &&
10
                 test -s conftest${ac_exeext} -a -s conftest.${ac_objext}; then
11
                  if test "`$PYTHON -m mozbuild.configure.check_debug_ranges conftest.${ac_objext} conftest.${ac_ext}`" = \
(-)www/firefox/files/patch-build_autoconf_expandlibs.m4 (+11 lines)
Line 0 Link Here
1
--- build/autoconf/expandlibs.m4.orig	2019-02-28 01:18:21.000000000 +0300
2
+++ build/autoconf/expandlibs.m4	2019-03-07 00:41:44.064388000 +0300
3
@@ -18,7 +18,7 @@
4
      dnl must pass the LTO CFLAGS to the compile command, and the LTO
5
      dnl LDFLAGS to all subsequent link commands.
6
      dnl https://sourceware.org/bugzilla/show_bug.cgi?id=23600
7
-     if AC_TRY_COMMAND(${CC-cc} -o conftest.${OBJ_SUFFIX} -c $MOZ_LTO_CFLAGS $CFLAGS $CPPFLAGS conftest.${ac_ext} 1>&5) && test -s conftest.${OBJ_SUFFIX}; then
8
+     if AC_TRY_COMMAND(${CC-cc} -o conftest.${OBJ_SUFFIX} -c $MOZ_LTO_CFLAGS -fPIC $CFLAGS $CPPFLAGS conftest.${ac_ext} 1>&5) && test -s conftest.${OBJ_SUFFIX}; then
9
          echo "INPUT(conftest.${OBJ_SUFFIX})" > conftest.list
10
          if test "$CC_TYPE" = "msvc" -o "$CC_TYPE" = "clang-cl"; then
11
              link="$LINKER -OUT:conftest${ac_exeext}"

Return to bug 233707