Ignore:
Timestamp:
06/29/2022 12:08:29 PM (22 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
0160d68, 0d80e532, e4d72ed
Parents:
bfc6495
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/ncurses.xml

    rbfc6495 rf8b27ab  
    4949            --without-debug         \
    5050            --without-normal        \
     51            --with-cxx-shared       \
    5152            --enable-pc-files       \
    5253            --enable-widec          \
     
    5556    <variablelist>
    5657      <title>The meaning of the new configure options:</title>
     58
     59      <varlistentry>
     60        <term><parameter>--with-shared</parameter></term>
     61        <listitem>
     62          <para>This makes Ncurses build and install shared C libraries.</para>
     63        </listitem>
     64      </varlistentry>
     65
     66      <varlistentry>
     67        <term><parameter>--without-normal</parameter></term>
     68        <listitem>
     69          <para>This prevents Ncurses building and installing static C
     70          libraries.</para>
     71        </listitem>
     72      </varlistentry>
     73
     74      <varlistentry>
     75        <term><parameter>--without-debug</parameter></term>
     76        <listitem>
     77          <para>This prevents Ncurses building and installing debug
     78          libraries.</para>
     79        </listitem>
     80      </varlistentry>
     81
     82      <varlistentry>
     83        <term><parameter>--with-cxx-shared</parameter></term>
     84        <listitem>
     85          <para>This makes Ncurses build and install shared C++ bindings. It
     86          also prevents it building and installing static C++ bindings.</para>
     87        </listitem>
     88      </varlistentry>
     89
     90      <varlistentry>
     91        <term><parameter>--enable-pc-files</parameter></term>
     92        <listitem>
     93          <para>This switch generates and installs .pc files for pkg-config.
     94          </para>
     95        </listitem>
     96      </varlistentry>
    5797
    5898      <varlistentry>
     
    70110      </varlistentry>
    71111
    72       <varlistentry>
    73         <term><parameter>--enable-pc-files</parameter></term>
    74         <listitem>
    75           <para>This switch generates and installs .pc files for pkg-config.
    76           </para>
    77         </listitem>
    78       </varlistentry>
    79 
    80       <varlistentry>
    81         <term><parameter>--without-normal</parameter></term>
    82         <listitem>
    83           <para>This switch disables building and installing most static libraries.
    84           </para>
    85         </listitem>
    86       </varlistentry>
    87 
    88112    </variablelist>
    89113
     
    113137<screen><userinput remap="install">make DESTDIR=$PWD/dest install
    114138install -vm755 dest/usr/lib/libncursesw.so.&ncurses-version; /usr/lib
    115 rm -v  dest/usr/lib/{libncursesw.so.&ncurses-version;,libncurses++w.a}
     139rm -v  dest/usr/lib/libncursesw.so.&ncurses-version;
    116140cp -av dest/* /</userinput></screen>
    117141
Note: See TracChangeset for help on using the changeset viewer.