LFS 3.0-pre3 upgrade hint ;)
jjones at darkside.dynup.net
Thu Aug 16 22:46:08 PDT 2001
I'll keep this updated as more info comes in.
-------------- next part --------------
TITLE: LFS 3.0-pre3 upgrade.
LFS VERSION: 3.0-pre3
AUTHOR: J. Jones <jjones(at)darkside(dot)dynup(dot)net>
This hint should solve your static compile issues on LFS 3.0-pre3.
Long story short: --strip-unneeded destroys static libraries.
I told Gerard the above was library safe, which it is for shared objects (at
least those not in use by the strip command), without testing the effects of
it on static libraries. It unfortunately leaves them in a completely unusable
Well, what do I have to do?
So far it appears you can get by with only rebuilding glibc and ncurses
statically. Your milage may vary, but it has corrected the problem on the
only two pre3 systems available.
IMPORTANT: If you don't execute the following, you are asking for trouble
during the glibc compile.
export CFLAGS="" && export CXXFLAGS=""
You will need to extract both tarballs as you did in the LFS instructions.
Create the glibc-build directory and cd into it. Use the following:
make install_root=/tmp/glibc-static install
cp -a * /usr/lib
cp -a *.a /lib
You should now have the required (functional) static libraries required to
complete chapter 5 of the LFS book.
Please report success and failure of this to me. This is my fault, and
therefore my responsibility to fix. Sorry. ;)
More information about the hints