[Bug lto/54206] build in source dir breaks lto plugin detection
bonzini at gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 5 06:34:00 GMT 2012
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
More information about the Gcc-bugs
mailing list