diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-03-17 13:04:12 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-03-17 13:04:12 +0000 |
commit | 23f2511f38e6b941c4096266ab83c0c5b09b60d3 (patch) | |
tree | 626559d0621b33815066f7502d9d6b5fea1ef2cd /lto-plugin/configure | |
parent | 3f58cb60ca8d1013cf04b438a365eb88bb4cce99 (diff) | |
download | gcc-23f2511f38e6b941c4096266ab83c0c5b09b60d3.tar.gz |
Fix Solaris bootstrap with GNU ld/LTO
* configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
for gcc.
* configure: Regenerate.
* Makefile.am (AM_LDFLAGS): New variable.
(liblto_plugin_la_LDFLAGS): Add it.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208614 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'lto-plugin/configure')
-rwxr-xr-x | lto-plugin/configure | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lto-plugin/configure b/lto-plugin/configure index 7a0d953e90b..2fc838329c7 100755 --- a/lto-plugin/configure +++ b/lto-plugin/configure @@ -622,6 +622,7 @@ EGREP GREP SED LIBTOOL +ac_lto_plugin_ldflags ac_lto_plugin_warn_cflags am__fastdepCC_FALSE am__fastdepCC_TRUE @@ -4086,6 +4087,9 @@ fi done CFLAGS="$save_CFLAGS" +# Need -Wc to get it through libtool. +if test "x$GCC" = xyes; then ac_lto_plugin_ldflags="-Wc,-static-libgcc"; fi + case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 @@ -10558,7 +10562,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10561 "configure" +#line 10565 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10664,7 +10668,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10667 "configure" +#line 10671 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |