This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/54206] build in source dir breaks lto plugin detection


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]