[lfs-support] LFS-7.0 Chapter 6.16. MPC-0.9 FYI

Bruce Dubbs bruce.dubbs at gmail.com
Wed Jan 18 19:07:33 PST 2012


Ken Moffat wrote:
> On Wed, Jan 18, 2012 at 08:49:37PM -0500, Baho Utot wrote:
>> I have been working on mpc.
>>
>> I have noticed that the way it is built in the book it only builds the static 
>> library.
>>
>> If --enable-shared is passed to configure it look like that is ignored as it 
>> still doesn't build the shared library.
>>
>> If autoreconf is run before doing the configure it builds the shared library 
>> as well.
>>
>> I expect gcc will links to mpc statically as per the book.

I don't think so:

$ cd /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.1
$ ldd cc1
     linux-vdso.so.1 =>  (0x00007fff5fdb3000)
     libmpc.so.2 => /usr/lib/libmpc.so.2 (0x00007fe420058000)
     libmpfr.so.4 => /usr/lib/libmpfr.so.4 (0x00007fe41fdfd000)
     libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007fe41fb91000)
     libdl.so.2 => /lib/libdl.so.2 (0x00007fe41f98d000)
     libz.so.1 => /lib/libz.so.1 (0x00007fe41f775000)
     libc.so.6 => /lib/libc.so.6 (0x00007fe41f3ee000)
     libm.so.6 => /lib/libm.so.6 (0x00007fe41f16c000)
     /lib64/ld-linux-x86-64.so.2 (0x00007fe42026c000)

   -- Bruce



More information about the lfs-support mailing list