re PR lto/47225 (cross-compile fails while configuring libgcc with "xgcc: fatal error...
authorKai Tietz <kai.tietz@onevision.com>
Mon, 7 Feb 2011 20:32:17 +0000 (20:32 +0000)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 7 Feb 2011 20:32:17 +0000 (21:32 +0100)
2011-02-07  Kai Tietz  <kai.tietz@onevision.com>

        PR lto/47225
        * Makefile.am (Wc): New helper for encoding -Wc,.
        (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
        (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
        * Makefile.in: Regenerated.

From-SVN: r169900

lto-plugin/ChangeLog
lto-plugin/Makefile.am
lto-plugin/Makefile.in

index 014634520aeb8c85890f52f20e3067ef0c64e141..1129a3784326b396aa4d49f424c9dc977f82f0e2 100644 (file)
@@ -1,3 +1,11 @@
+2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
+
+       PR lto/47225
+       * Makefile.am (Wc): New helper for encoding -Wc,.
+       (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
+       (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
+       * Makefile.in: Regenerated.
+
 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
 
        Revert:
index a51bc4a9739edcfdfecb7143a1a68812c68e5a72..a150f80f50c42d2fd31a3bf8469983d967bcaeaf 100644 (file)
@@ -13,12 +13,17 @@ AM_LIBTOOLFLAGS = --tag=disable-static
 
 libexecsub_LTLIBRARIES = liblto_plugin.la
 
+# Can be removed when libiberty becomes a normal convenience library
+Wc=-Wc,
+
 liblto_plugin_la_SOURCES = lto-plugin.c
 liblto_plugin_la_LIBADD = \
-       $(if $(wildcard ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
+       $(if $(wildcard ../libiberty/pic/libiberty.a),$(Wc)../libiberty/pic/libiberty.a,)
 # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
 liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \
        $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
+liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \
+       ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
 
 all: copy_lto_plugin
 
index 2e283f7a0ebfeeb88a011eb01792deeab222f4c6..aa14e52a031d67d0d70d229c68b268883373ad68 100644 (file)
@@ -81,8 +81,6 @@ am__base_list = \
   sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
 am__installdirs = "$(DESTDIR)$(libexecsubdir)"
 LTLIBRARIES = $(libexecsub_LTLIBRARIES)
-liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \
-       ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
 am_liblto_plugin_la_OBJECTS = lto-plugin.lo
 liblto_plugin_la_OBJECTS = $(am_liblto_plugin_la_OBJECTS)
 liblto_plugin_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
@@ -232,14 +230,20 @@ AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
 AM_CFLAGS = -Wall -Werror
 AM_LIBTOOLFLAGS = --tag=disable-static
 libexecsub_LTLIBRARIES = liblto_plugin.la
+
+# Can be removed when libiberty becomes a normal convenience library
+Wc = -Wc,
 liblto_plugin_la_SOURCES = lto-plugin.c
 liblto_plugin_la_LIBADD = \
-       $(if $(wildcard ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
+       $(if $(wildcard ../libiberty/pic/libiberty.a),$(Wc)../libiberty/pic/libiberty.a,)
 
 # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
 liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \
        $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
 
+liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \
+       ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
+
 all: config.h
        $(MAKE) $(AM_MAKEFLAGS) all-am