I'm attempting to compile GCC 4.5.2 as part of the Linux from Scratch book (http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html). My configure is as follows:
./configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-shared --disable-multilib \
--disable-decimal-float --disable-threads \
--disable-libmudflap --disable-libssp \
--disable-libgomp --enable-languages=c \
--with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs \
--without-ppl --without-cloog
When I attempt to make I get the error (after digging around in config.logs):
error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory
I have gmp in a subdirectory and got to this point after successfully compiling it. How can I point GCC to use this library?
I'm going through LFS in an attempt to get myself more familiar with Linux behaviour. I've jumped over a fair few hurdles but this particular case is stumping me.
If it's relevant: I'm using an Ubuntu 11 host. Any ideas?
With thanks.