Ignore:
Timestamp:
Jan 7, 2009, 10:55:12 AM (16 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
de28452
Parents:
bf8339f
Message:

Cleanup Readline Build. Changed the way to link ncurses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/readline.xml

    rbf8339f r3d00c1ed  
    3131<screen os="p2"><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
    3232
     33    <para os="s1">This option forces Readline to link against the
     34          <filename class="libraryfile">libncurses</filename> library:</para>
     35
     36<screen os="s2"><userinput>sed -i 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf</userinput></screen>
     37
    3338    <para os="a">Prepare Readline for compilation:</para>
    3439
     
    3742    <para os="c">Compile the package:</para>
    3843
    39 <screen os="d"><userinput>make SHLIB_XLDFLAGS=-lncurses</userinput></screen>
     44<screen os="d"><userinput>make</userinput></screen>
    4045
    41     <variablelist os="e">
    42       <title>The meaning of the make option:</title>
     46    <para os="e">This package does not come with a test suite.</para>
    4347
    44       <varlistentry>
    45         <term><parameter>SHLIB_XLDFLAGS=-lncurses</parameter></term>
    46         <listitem>
    47           <para>This option forces Readline to link against the
    48           <filename class="libraryfile">libncurses</filename> library.</para>
    49         </listitem>
    50       </varlistentry>
    51     </variablelist>
     48    <para os="f">Install the package:</para>
    5249
    53     <para os="f">This package does not come with a test suite.</para>
     50<screen os="g"><userinput>make install</userinput></screen>
    5451
    55     <para os="g">Install the package:</para>
     52    <para os="h">Now move the static libraries to a more appropriate location:</para>
    5653
    57 <screen os="h"><userinput>make install</userinput></screen>
     54<screen os="i"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
    5855
    59     <para os="k">Now move the static libraries to a more appropriate location:</para>
    60 
    61 <screen os="l"><userinput>mv -v /lib/lib{readline,history}.a /usr/lib</userinput></screen>
    62 
    63     <para os="m">Next, remove the <filename class="extension">.so</filename>
     56    <para os="j">Next, remove the <filename class="extension">.so</filename>
    6457    files in <filename class="directory">/lib</filename> and relink them into
    6558    <filename class="directory">/usr/lib</filename>.</para>
    6659
    67 <screen os="n"><userinput>rm -v /lib/lib{readline,history}.so
     60<screen os="k"><userinput>rm -v /lib/lib{readline,history}.so
    6861ln -svf ../../lib/libreadline.so.5 /usr/lib/libreadline.so
    6962ln -svf ../../lib/libhistory.so.5 /usr/lib/libhistory.so</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.