From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21318 invoked by alias); 5 Oct 2012 06:34:01 -0000 Received: (qmail 21263 invoked by uid 48); 5 Oct 2012 06:33:44 -0000 From: "bonzini at gnu dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/54206] build in source dir breaks lto plugin detection Date: Fri, 05 Oct 2012 06:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bonzini at gnu dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg00382.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54206 --- Comment #7 from Paolo Bonzini 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