From efcb3933433838b71f3a4a53ec1ac6d899aaec0b Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 3 May 2020 21:02:51 +0000 Subject: Make the new book git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/ncurses.xml | 77 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 26 deletions(-) (limited to 'chapter05/ncurses.xml') diff --git a/chapter05/ncurses.xml b/chapter05/ncurses.xml index c00135f12..5c868fffd 100644 --- a/chapter05/ncurses.xml +++ b/chapter05/ncurses.xml @@ -49,15 +49,20 @@ Prepare Ncurses for compilation: -./configure --prefix=/tools \ - --with-shared \ - --without-debug \ - --without-ada \ - --enable-widec \ - --enable-overwrite +./configure --prefix=/usr \ + --host=$LFS_TGT \ + --build=$(./config.guess) \ + --mandir=/usr/share/man \ + --with-shared \ + --without-debug \ + --without-ada \ + --without-normal \ + --disable-db-install \ + --enable-widec \ + --enable-pc-files - The meaning of the configure options: + The meaning of the new configure options: --without-ada @@ -68,17 +73,6 @@ - - --enable-overwrite - - This tells Ncurses to install its header files into - /tools/include, instead of - /tools/include/ncurses, to - ensure that other packages can find the Ncurses headers - successfully. - - - --enable-widec @@ -93,22 +87,53 @@ + + --enable-pc-files + + This switch generates and installs .pc files for pkg-config. + + + + + + --without-normal + + This switch disables building and installing most static libraries. + + + + + + --disable-db-install + + This switch disables building the terminfo database: it is not + needed at this stage, and if tic is too old, + it cannot compile recent databases. + + + Compile the package: make - This package has a test suite, but it can only be run after the - package has been installed. The tests reside in the - test/ directory. See the - README file in that directory for further details. - - Install the package: + +make DESTDIR=$LFS install + ln -s libncursesw.so $LFS/usr/lib/libncurses.so + + Move the shared libraries to the + /lib directory, where they are + expected to reside: + +mv -v $LFS/usr/lib/libncursesw.so.6* $LFS/lib + + Because the libraries have been moved, one symlink points to + a non-existent file. Recreate it: + +ln -sfv ../../lib/$(readlink $LFS/usr/lib/libncursesw.so) $LFS/usr/lib/libncursesw.so -make install -ln -s libncursesw.so /tools/lib/libncurses.so -- cgit v1.2.3-54-g00ecf