Shared gmp (and friends)

Christer Solskogen christer.solskogen@gmail.com
Fri Mar 28 13:29:00 GMT 2014


On Fri, Mar 28, 2014 at 11:14 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 28 March 2014 09:51, Christer Solskogen wrote:
>> Hi!
>>
>> I've installed all the prerequisites for GCC, and all of them install both a
>> static library and a shared library. However, GCC still choose to link to the
>> static library and not the shared one. How come?
>
> Not enough information to answer.
>
> How did you install them? Where did you install them? How did you configure GCC?

The "normal" ./configure && make && make install for gmp,mpfr and mpc.
--prefix was set to /opt/custom, LD_LIBRARY_PATH was exported to
/opt/custom/lib.
But I've only checked the ldd output of the gcc binary. Perhaps 'gcc'
is not linked to those libraries, but cc1 is? Hmm.. will check that.

-- 
chs



More information about the Gcc-help mailing list