This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add -print-lto-plugin
On Sun, Oct 03, 2010 at 04:01:19AM -0700, H.J. Lu wrote:
> On Sun, Oct 3, 2010 at 3:01 AM, Andi Kleen <andi@firstfloor.org> wrote:
> > On Sun, Oct 03, 2010 at 02:43:33AM -0700, H.J. Lu wrote:
> >> You can use
> >>
> >> gcc -print-prog-name=liblto_plugin.so
> >>
> >> today.
> >
> > That is true, but it looks much uglier than the simple option.
> > Also I'm not sure it's a good idea to hardcode the lto plugin
> > name in Makefiles.
> >
> > So I would prefer to still have the higher-level option.
> >
>
> I prefer gcc provide a wrapper for ar and nm". It is
> much easier to use. Imaging if you have to call linker
> directly.
Perhaps both could be done? The option is a good way
to implement the wrappers.
I can send a followon patch with suitable wrappers, but
I'm not fully sure how to do the necessary autoconf magic
to detect the binutils support.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.