Gentoo Archives: gentoo-alt

From: Konstantin Tokarev <annulen@××××××.ru>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Re: Idea: external compilers in gcc-config
Date: Mon, 21 Mar 2011 13:37:35
Message-Id: 504591300714634@web3.yandex.ru
In Reply to: Re: [gentoo-alt] Idea: external compilers in gcc-config by Fabian Groffen
21.03.2011, 16:28, "Fabian Groffen" <grobian@g.o>:
> On 21-03-2011 16:22:08 +0300, Konstantin Tokarev wrote: > >> šHi all, >> >> šI think it would be great to have a possibility to select "external" gcc profiles in gcc-config: >> ša) add "system" compiler if host system is shipped with decent gcc version; >> šb) add compiler from another Prefix installation. >> >> šThis feature would significantly speed up bootstrap of Prefix eliminating at least one build of >> šgcc in Gentoo-friendly environments like Linux and Mac OS X, and give some additional >> šflexibility in building of system. > > I bootstrapped on Fedora 14 last week by skipping all > ./bootstrap-prefix.sh commands apart from tree and portage, and that > worked fine. > > Skipping the emerge of compiler and linker is really going to cause > trouble, since Gentoo Prefix uses modified versions that make sure all > the tools from the Prefix are found. šThis is an essential bit of Gentoo > Prefix, that distinguishes it from all other solutions that are around, > because it means you don't have to do anything special to make your > libraries and tools being found, once you're in the Prefix environment.
Isn't it possible to workaround this problem without hardcoding search paths, e.g. using -isystem and custom ld script when running portage? (Dreaming about relocatable Prefix) -- Regards, Konstantin

Replies

Subject Author
Re: [gentoo-alt] Re: Idea: external compilers in gcc-config Fabian Groffen <grobian@g.o>