This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] Add -print-lto-plugin
On Fri, Oct 29, 2010 at 03:39:42PM +0200, Richard Guenther wrote:
> On Fri, Oct 29, 2010 at 1:46 PM, Andi Kleen <andi@firstfloor.org> wrote:
> > From: Andi Kleen <ak@linux.intel.com>
> >
> > binutils have LTO linker plugin support now, but it requires hardcoding
> > the path to gcc's libexec dir in the Makefile. Add an option to the
> > gcc driver instead to print the full file name to avoid this.
> >
> > This is especially useful for ar or nm.
>
> Is the reason for not using -print-file-name=liblto-plugin.so to not hardcode
> that name? (which you still did in the patch - not sure if it's that specific
> name on all hosts).
Yes, David Korn pointed out that doesn't work on Windows because of
the postfix.
His COFF work is not merged yet, but he can simply switch the file name
around in gcc. on Windows when that gets merged. That's better than having
special cases everywhere in makefiles or in the wrappers.
-Andi