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