Building and Installing gcc-4.7.0 on Ubuntu 12.04

Jonathan Wakely jwakely.gcc@gmail.com
Wed Jun 6 12:17:00 GMT 2012


On 6 June 2012 11:02, David Given wrote:
> Jonathan Wakely wrote:
>> On 6 June 2012 06:48, Anup Ghatage wrote:
> [...]
>>> Untar'ed it.
>>> ./configure
>>
>> You didn't read the docs then, see  http://gcc.gnu.org/wiki/InstallingGCC
>
> If you're referring to the need to set objdir, the documentation that
> actually ships with gcc says:
>
>> First, we highly recommend that GCC be built into a separate directory
>> from the sources which does not reside within the source tree. This is
>> how we generally build GCC; building where srcdir == objdir should still
>> work, but doesn't get extensive testing; building where objdir is a
>> subdirectory of srcdir is unsupported.
>
> In others, it says firmly that srcdir == objdir should actually work.

Which others?

It might work, but if you don't know what you're doing or get a
failure using ./configure then following the recommended approach
seems like a good idea.



More information about the Gcc-help mailing list