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 4:46 AM, 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.
>
There is
[hjl@gnu-6 gcc]$ grep LTOPLUGINSONAME configure.ac
AC_DEFINE_UNQUOTED(LTOPLUGINSONAME,"${host_lto_plugin_soname}",
[hjl@gnu-6 gcc]$
Why not add LTOPLUGINSONAME to Makefile? Then you can use
"gcc --print ...=$(LTOPLUGINSONAME)" to generate your scripts?
--
H.J.