[lfs-support] LFS-7.0 Chapter 6.16. MPC-0.9 FYI
baho-utot at columbus.rr.com
Thu Jan 19 04:11:03 PST 2012
On Wednesday 18 January 2012 10:07:33 pm Bruce Dubbs wrote:
> 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
This is a list of files installed from my build of mpc
You see I am missing the shared library. The only time I get the shared
library is when I use ayotools autoreconf but that can't be done with the
build because as you know they are not present at this point in the build.
gmp amd mpfr do have shared libraaries only mpc doesn't on this build. All of
these libraries very built according to the book. Any deviation found is/was
an error on my part.
I have not built gcc. I will do that today and the run ldd
More information about the lfs-support