aboutsummaryrefslogtreecommitdiff
path: root/lto-plugin/configure
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2014-03-17 13:04:12 +0000
committerRainer Orth <ro@gcc.gnu.org>2014-03-17 13:04:12 +0000
commit5523efdf24d43022082ccf103f11f144a0ff9548 (patch)
tree626559d0621b33815066f7502d9d6b5fea1ef2cd /lto-plugin/configure
parent8692ae102d861f3e0c3fd5ebc09be4000acd07b4 (diff)
downloadgcc-5523efdf24d43022082ccf103f11f144a0ff9548.zip
gcc-5523efdf24d43022082ccf103f11f144a0ff9548.tar.gz
gcc-5523efdf24d43022082ccf103f11f144a0ff9548.tar.bz2
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. From-SVN: r208614
Diffstat (limited to 'lto-plugin/configure')
-rwxr-xr-xlto-plugin/configure8
1 files changed, 6 insertions, 2 deletions
diff --git a/lto-plugin/configure b/lto-plugin/configure
index 7a0d953..2fc8383 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