FreeBSD Bugzilla – Attachment 202675 Details for
Bug 233707
www/firefox: fails to build with -fstack-protector-{strong,all} + -Wl,-z,nocopyreloc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add linker flag to tests
firefox_build_hardened.patch (text/plain), 2.35 KB, created by
Ivan Rozhuk
on 2019-03-07 08:16:53 UTC
(
hide
)
Description:
add linker flag to tests
Filename:
MIME Type:
Creator:
Ivan Rozhuk
Created:
2019-03-07 08:16:53 UTC
Size:
2.35 KB
patch
obsolete
>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}"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233707
:
201510
|
202675
|
202878
|
202889