Author: pierre
Date: Sun Apr 19 00:54:14 2020
New Revision: 11814

Log:
Fix readline.pc that incorrectly referenced termcap

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/readline.xml

Modified: trunk/BOOK/chapter01/changelog.xml
==============================================================================
--- trunk/BOOK/chapter01/changelog.xml  Sun Apr 19 00:42:38 2020        (r11813)
+++ trunk/BOOK/chapter01/changelog.xml  Sun Apr 19 00:54:14 2020        (r11814)
@@ -46,6 +46,11 @@
       <para>2020-04-19</para>
       <itemizedlist>
         <listitem>
+          <para>[pierre] - Prevent readline.pc from referencing termcap as
+          a private library by adding --with-curses to configure switches.
+          Fixes <ulink url="&lfs-ticket-root;4635">#4635</ulink>.</para>
+        </listitem>
+        <listitem>
           <para>[pierre] - Allow bison to use the libtextstyle.so library from
           gettext, by moving gettext before bison. Fixes
           <ulink url="&lfs-ticket-root;4634">#4634</ulink>.</para>

Modified: trunk/BOOK/chapter06/readline.xml
==============================================================================
--- trunk/BOOK/chapter06/readline.xml   Sun Apr 19 00:42:38 2020        (r11813)
+++ trunk/BOOK/chapter06/readline.xml   Sun Apr 19 00:54:14 2020        (r11814)
@@ -53,8 +53,24 @@
 
 <screen><userinput remap="configure">./configure --prefix=/usr    \
             --disable-static \
+            --with-curses    \
             
--docdir=/usr/share/doc/readline-&readline-version;</userinput></screen>
 
+     <variablelist>
+      <title>The meaning of the configure option:</title>
+
+      <varlistentry>
+        <term><parameter>--with-curses"</parameter></term>
+        <listitem>
+          <para>This option tells Readline that it can find the termcap
+          library functions in the curses library, rather than a separate
+          termcap library. It allows generating a correct
+          <filename>readline.pc</filename> file.</para>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
     <para>Compile the package:</para>
 
 <screen><userinput remap="make">make SHLIB_LIBS="-L/tools/lib 
-lncursesw"</userinput></screen>
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to