Typo
[linux_from_scratch_hints.git] / OLD / lfs-3.0pre3-upgrade.txt
blob145349259479ca448bf7676303cc45d690feba97
1 GENERAL OUTLINE
2 ===============
4 TITLE:          LFS 3.0-pre3 upgrade.
5 LFS VERSION:    3.0-pre3
6 AUTHOR:         J. Jones <jjones(at)darkside(dot)dynup(dot)net>
8 SYNOPSIS:
9         This hint should solve your static compile issues on LFS 3.0-pre3.
11 HINT:
13 Why this?
14 =========
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
21 state.
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=""
36 glibc-2.2.1 rebuild:
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 \
42   --prefix=/usr \
43   --disable-shared \
44   --disable-profile \
45   --enable-add-ons
46 make
47 make install_root=/tmp/glibc-static install
48 cd /tmp/glibc-static/usr/lib
49 cp -a * /usr/lib
51 ncurses-5.2 rebuild:
53 ./configure \
54   --with-install-prefix=/tmp/ncurses-static \
55   --prefix=/usr \
56   --libdir=/lib \
57   --without-shared \
58   --without-profile \
59   --without-debug \
60   --disable-termcap
61 make
62 make install
63 cd /tmp/ncurses-static/lib
64 cp -a *.a /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.  ;)
72 ====
73 End.