From f8b27abcda6fd5beaaf3f57ae31da4878b5aca0e Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Wed, 29 Jun 2022 14:08:29 +0200 Subject: Generate shared C++ bindings for ncurses Presently we let the build system generate static C++ bindings, and then we remove them. Note that we could also prevent generating any C++ binding, since nothing in LFS/BLFS use them, but it seems to me that generating the shared ones is closer to what is done for other packages. --- chapter06/ncurses.xml | 46 +++++++++++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 11 deletions(-) (limited to 'chapter06') diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index 34426d4b7..d9457c081 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -65,9 +65,10 @@ popd --mandir=/usr/share/man \ --with-manpage-format=normal \ --with-shared \ + --without-normal \ + --with-cxx-shared \ --without-debug \ --without-ada \ - --without-normal \ --disable-stripping \ --enable-widec @@ -83,6 +84,37 @@ popd + + --with-shared + + This makes Ncurses build and install shared C libraries. + + + + + --without-normal + + This prevents Ncurses building and installing static C + libraries. + + + + + --without-debug + + This prevents Ncurses building and installing debug + libraries. + + + + + --with-cxx-shared + + This makes Ncurses build and install shared C++ bindings. It + also prevents it building and installing static C++ bindings. + + + --without-ada @@ -115,14 +147,6 @@ popd - - --without-normal - - This switch disables building and installing most static libraries. - - - - Compile the package: @@ -133,12 +157,12 @@ popd make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so - + The meaning of the install options: -- cgit v1.2.3-54-g00ecf