Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/ncurses.xml

    r2bb813a raf974a9c  
    135135echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so</userinput></screen>
    136136
    137     <para>Remove an unneeded static library not handled by
    138     <command>configure</command>:</para>
    139 
    140 <screen><userinput remap="install">rm -v /usr/lib/libncurses++w.a</userinput></screen>
    141 
    142137    <variablelist>
    143138      <title>The meaning of the install options:</title>
     
    166161  </sect2>
    167162
     163  <!-- - - - - - - - - - -->
     164  <!-- Multilib - 32bit  -->
     165  <!-- - - - - - - - - - -->
     166  <sect2 arch="ml_32,ml_all">
     167    <title>Building Ncurses - 32bit</title>
     168
     169    <para>Clean previous build:</para>
     170
     171<screen><userinput remap="pre">make distclean</userinput></screen>
     172
     173    <para>Prepare Ncurses for compilation:</para>
     174
     175<screen><userinput remap="configure">CC="$LFS_TGT-gcc -m32"              \
     176CXX="$LFS_TGT-g++ -m32"             \
     177./configure --prefix=/usr           \
     178            --host=$LFS_TGT32       \
     179            --build=$(./config.guess)    \
     180            --libdir=/usr/lib32     \
     181            --mandir=/usr/share/man \
     182            --with-shared           \
     183            --without-debug         \
     184            --without-ada           \
     185            --without-normal        \
     186            --disable-stripping     \
     187            --enable-widec</userinput></screen>
     188
     189    <para>Compile the package:</para>
     190
     191<screen><userinput remap="make">make</userinput></screen>
     192
     193    <para>Install the package:</para>
     194
     195<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR TIC_PATH=$(pwd)/build/progs/tic install
     196ln -s libncursesw.so DESTDIR/usr/lib32/libcursesw.so
     197cp -Rv DESTDIR/usr/lib32/* $LFS/usr/lib32
     198rm -rf DESTDIR</userinput></screen>
     199
     200  </sect2><!-- m32 -->
     201
     202  <!-- - - - - - - - - - -->
     203  <!-- Multilib - x32bit -->
     204  <!-- - - - - - - - - - -->
     205  <sect2 arch="ml_x32,ml_all">
     206    <title>Building Ncurses - x32bit</title>
     207
     208    <para>Clean previous build:</para>
     209
     210<screen><userinput remap="pre">make distclean</userinput></screen>
     211
     212    <para>Prepare Ncurses for compilation:</para>
     213
     214<screen><userinput remap="configure">CC="$LFS_TGT-gcc -mx32"             \
     215CXX="$LFS_TGT-g++ -mx32"            \
     216./configure --prefix=/usr           \
     217            --host=$LFS_TGTX32      \
     218            --build=$(./config.guess)    \
     219            --libdir=/usr/libx32    \
     220            --mandir=/usr/share/man \
     221            --with-shared           \
     222            --without-debug         \
     223            --without-ada           \
     224            --without-normal        \
     225            --disable-stripping     \
     226            --enable-widec</userinput></screen>
     227
     228    <para>Compile the package:</para>
     229
     230<screen><userinput remap="make">make</userinput></screen>
     231
     232    <para>Install the package:</para>
     233
     234<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR TIC_PATH=$(pwd)/build/progs/tic install
     235ln -s libncursesw.so DESTDIR/usr/libx32/libcursesw.so
     236cp -Rv DESTDIR/usr/libx32/* $LFS/usr/libx32
     237rm -rf DESTDIR</userinput></screen>
     238
     239  </sect2><!-- mx32 -->
     240
    168241  <sect2 role="content">
    169242    <title/>
Note: See TracChangeset for help on using the changeset viewer.