diff options
author | Pierre Labastie <pierre.labastie@neuf.fr> | 2022-06-29 14:08:29 +0200 |
---|---|---|
committer | Pierre Labastie <pierre.labastie@neuf.fr> | 2022-06-29 14:08:29 +0200 |
commit | f8b27abcda6fd5beaaf3f57ae31da4878b5aca0e (patch) | |
tree | 592e996961a363d8988f5de512e56499d3f9fac2 /chapter06 | |
parent | bfc6495520f79cc627206abe295a979655cbe871 (diff) |
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.
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/ncurses.xml | 46 |
1 files changed, 35 insertions, 11 deletions
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</userinput></screen> --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</userinput></screen> @@ -84,6 +85,37 @@ popd</userinput></screen> </varlistentry> <varlistentry> + <term><parameter>--with-shared</parameter></term> + <listitem> + <para>This makes Ncurses build and install shared C libraries.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><parameter>--without-normal</parameter></term> + <listitem> + <para>This prevents Ncurses building and installing static C + libraries.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><parameter>--without-debug</parameter></term> + <listitem> + <para>This prevents Ncurses building and installing debug + libraries.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><parameter>--with-cxx-shared</parameter></term> + <listitem> + <para>This makes Ncurses build and install shared C++ bindings. It + also prevents it building and installing static C++ bindings.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter>--without-ada</parameter></term> <listitem> <para>This ensures that Ncurses does not build support for the Ada @@ -115,14 +147,6 @@ popd</userinput></screen> </listitem> </varlistentry> - <varlistentry> - <term><parameter>--without-normal</parameter></term> - <listitem> - <para>This switch disables building and installing most static libraries. - </para> - </listitem> - </varlistentry> - </variablelist> <para>Compile the package:</para> @@ -133,12 +157,12 @@ popd</userinput></screen> <screen><userinput remap="install">make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so</userinput></screen> - +<!-- <para>Remove an unneeded static library not handled by <command>configure</command>:</para> <screen><userinput remap="install">rm -v $LFS/usr/lib/libncurses++w.a</userinput></screen> - +--> <variablelist> <title>The meaning of the install options:</title> |