On Wed, Aug 27, 2008 at 8:05 PM, Greg Schafer <[EMAIL PROTECTED]> wrote:
> Steve Crosby wrote:
>
>> FYI: building them in the tools directory is going to be problematic.
>> During the stage 1 build of gcc, the make system is unable to locate
>> the libmpfr.so.1 library, and so aborts.
>
> Guys, this issue has already been solved. Just unpack the GMP and MPFR
> tarballs into the already unpacked GCC tree and *build them as part of the
> GCC build*. It solves most problems and is clearly the more robust
> approach. More info here:
>
> http://www.diy-linux.org/pipermail/diy-linux-dev/2008-February/001192.html
>

Thanks Greg, appreciate the pointer. Another solution is to modify the
gcc build instructions (pass1 at least, will confirm pass 2 later, but
ld LIB_PATH change likely means no change needed) as follows. The
method below requires only unpacking gmp\mpfr once, but thats a fairly
minor point. More importantly, we can include a note about use of
LD_LIBRARY_PATH\ld.so.conf when referencing libs installed in
"non-standard" directories, which increases educational value - the
editors can decide as they wish ;)

1. Move gmp\mpfr instructions to before gcc pass 1
2. Add --with-gmp=/tools to mpfr configure line
3. modify gcc configure line to include --wth-gmp=/tools (--with-mpfr
is not necessary, configure uses gmp location by default)
4. Modify gcc make command with one of the following

LD_LIBRARY_PATH=/tools/lib:$LD_LIBRARY_PATH make

    or

cat >> /etc/ld.so.conf << "EOF"
/tools/lib
EOF
make
sed -i -e '@/tools/[EMAIL PROTECTED]' /etc/ld.so.conf

-- 
-- -
Steve Crosby
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to