4 TITLE: LFS 3.0-pre3 upgrade.
6 AUTHOR: J. Jones <jjones(at)darkside(dot)dynup(dot)net>
9 This hint should solve your static compile issues on LFS 3.0-pre3.
16 Long story short: --strip-unneeded destroys static libraries.
18 I told Gerard the above was library safe, which it is for shared objects (at
19 least those not in use by the strip command), without testing the effects of
20 it on static libraries. It unfortunately leaves them in a completely unusable
24 Well, what do I have to do?
25 ===========================
27 So far it appears you can get by with only rebuilding glibc and ncurses
28 statically. Your milage may vary, but it has corrected the problem on the
29 only two pre3 systems available.
31 IMPORTANT: If you don't execute the following, you are asking for trouble
32 during the glibc compile.
34 export CFLAGS="" && export CXXFLAGS=""
38 You will need to extract both tarballs as you did in the LFS instructions.
39 Create the glibc-build directory and cd into it. Use the following:
41 ../glibc-2.2.1/configure \
47 make install_root=/tmp/glibc-static install
48 cd /tmp/glibc-static/usr/lib
54 --with-install-prefix=/tmp/ncurses-static \
63 cd /tmp/ncurses-static/lib
66 You should now have the required (functional) static libraries required to
67 complete chapter 5 of the LFS book.
69 Please report success and failure of this to me. This is my fault, and
70 therefore my responsibility to fix. Sorry. ;)