GCC-4.4.0 install without gmp. Possible?

Sangamesh B forum.san@gmail.com
Fri Jun 19 16:03:00 GMT 2009


On Fri, Jun 19, 2009 at 9:17 PM, Ian Lance Taylor<iant@google.com> 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.
>
Thanks lan.

Is each gcc compiled executable link with libgmp, by default?
Or  only in some circumstances libgmp gets linked? (output of ldd <exe>).

- Sangamesh
> Ian
>



More information about the Gcc-help mailing list