This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/54206] build in source dir breaks lto plugin detection
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Oct 2012 06:33:41 +0000
- Subject: [Bug lto/54206] build in source dir breaks lto plugin detection
- Auto-submitted: auto-generated
- References: <bug-54206-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54206
--- Comment #7 from Paolo Bonzini <bonzini at gnu dot org> 2012-10-05 06:33:41 UTC ---
Building in srcdir usually works. Could it be as simple as this?
Index: Makefile.am
===================================================================
--- Makefile.am (revisione 177688)
+++ Makefile.am (copia locale)
@@ -12,7 +12,7 @@ AM_CFLAGS = @ac_lto_plugin_warn_cflags@
AM_LIBTOOLFLAGS = --tag=disable-static
libexecsub_LTLIBRARIES = liblto_plugin.la
-gcc_build_dir = ../$(host_subdir)/gcc
+gcc_build_dir = ../gcc
in_gcc_libs = $(foreach lib, $(libexecsub_LTLIBRARIES),
$(gcc_build_dir)/$(lib))
# Can be removed when libiberty becomes a normal convenience library