diff mbox

[lto] : PR/47225 - [4.6 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"

Message ID AANLkTimQ6H=YgYsSRoE=DJQf-sXr8J8FHy+S_EtzwMyY@mail.gmail.com
State New
Headers show

Commit Message

Kai Tietz Feb. 6, 2011, 11:52 a.m. UTC
Hello,

One of the Issue here is that the lto-plugin gets installed too late.
This patch fixes
the issue by adding install-lto-plugin as dependecy for install-gcc.
When you install bare-compiler via install-gcc for building initial
crt, the linker plugin is already needed for link tests.

ChangeLog

2011-02-06  Kai Tietz

	PR lto/47225
	* Makefile.def: Add dependency of install-gcc
	on install-lto-plugin.
	* Makfile.in: Regenerated

Tested for x86_64-pc-linux-gnu, and x86_64-pc-mingw32. Ok for apply?

Kai

Comments

Paolo Bonzini Feb. 6, 2011, 2:57 p.m. UTC | #1
On Sun, Feb 6, 2011 at 12:52, Kai Tietz <ktietz70@googlemail.com> wrote:
> Hello,
>
> One of the Issue here is that the lto-plugin gets installed too late.
> This patch fixes
> the issue by adding install-lto-plugin as dependecy for install-gcc.
> When you install bare-compiler via install-gcc for building initial
> crt, the linker plugin is already needed for link tests.
>
> ChangeLog
>
> 2011-02-06  Kai Tietz
>
>        PR lto/47225
>        * Makefile.def: Add dependency of install-gcc
>        on install-lto-plugin.
>        * Makfile.in: Regenerated
>
> Tested for x86_64-pc-linux-gnu, and x86_64-pc-mingw32. Ok for apply?

Ok.

Paolo
Kai Tietz Feb. 6, 2011, 3:07 p.m. UTC | #2
2011/2/6 Paolo Bonzini <bonzini@gnu.org>:
> On Sun, Feb 6, 2011 at 12:52, Kai Tietz <ktietz70@googlemail.com> wrote:
>> Hello,
>>
>> One of the Issue here is that the lto-plugin gets installed too late.
>> This patch fixes
>> the issue by adding install-lto-plugin as dependecy for install-gcc.
>> When you install bare-compiler via install-gcc for building initial
>> crt, the linker plugin is already needed for link tests.
>>
>> ChangeLog
>>
>> 2011-02-06  Kai Tietz
>>
>>        PR lto/47225
>>        * Makefile.def: Add dependency of install-gcc
>>        on install-lto-plugin.
>>        * Makfile.in: Regenerated
>>
>> Tested for x86_64-pc-linux-gnu, and x86_64-pc-mingw32. Ok for apply?
>
> Ok.
>
> Paolo
>

Applied at revision 169863.

Kai
diff mbox

Patch

Index: Makefile.def
===================================================================
--- Makefile.def	(revision 169860)
+++ Makefile.def	(working copy)
@@ -352,6 +352,7 @@ 
 dependencies = { module=pdf-gcc; on=all-build-libiberty; };
 dependencies = { module=html-gcc; on=all-build-libiberty; };
 dependencies = { module=install-gcc ; on=install-fixincludes; };
+dependencies = { module=install-gcc ; on=install-lto-plugin; };
 dependencies = { module=install-strip-gcc ; on=install-strip-fixincludes; };
 
 dependencies = { module=configure-libcpp; on=configure-libiberty; hard=true; };
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 169860)
+++ Makefile.in	(working copy)
@@ -60492,6 +60492,7 @@ 
 html-stageprofile-gcc: maybe-all-build-libiberty
 html-stagefeedback-gcc: maybe-all-build-libiberty
 install-gcc: maybe-install-fixincludes
+install-gcc: maybe-install-lto-plugin
 install-strip-gcc: maybe-install-strip-fixincludes
 configure-libcpp: configure-libiberty