GCC-4.4.0 install without gmp. Possible?
Ian Lance Taylor
iant@google.com
Fri Jun 19 17:44:00 GMT 2009
Richard Earnshaw <rearnsha@arm.com> writes:
> On Fri, 2009-06-19 at 08:47 -0700, Ian Lance Taylor wrote:
>> Sangamesh B <forum.san@gmail.com> writes:
>>
>> > So is there a way to compile GCC without gmp library? Is that possible?
>>
>> No.
>>
>> But you don't have to install gmp. You can put the gmp sources in the
>> gcc build directory, in a directory named "gmp", and they will be built
>> and linked in. Or, you can build and install gmp in your home
>> directory, configuring gmp with --disable-static, and use --with-gmp
>> when you configure gcc to point it to your private install.
>>
>> Ian
>
> I normally find it better to use --disable-shared rather than
> --disable-static. Then your binaries won't have any unusual
> dependencies at run-time (ie gmp & mpfr will be statically linked into
> your image).
Quite right, I did mean --disable-shared. Sorry.
Ian
More information about the Gcc-help
mailing list