[blfs-book] r9462 - trunk/BOOK/networking/textweb

andy at linuxfromscratch.org andy at linuxfromscratch.org
Sat Feb 18 09:09:37 PST 2012


Author: andy
Date: 2012-02-18 10:09:33 -0700 (Sat, 18 Feb 2012)
New Revision: 9462

Modified:
   trunk/BOOK/networking/textweb/w3m.xml
Log:
w3m tweak

Modified: trunk/BOOK/networking/textweb/w3m.xml
===================================================================
--- trunk/BOOK/networking/textweb/w3m.xml	2012-02-18 14:51:36 UTC (rev 9461)
+++ trunk/BOOK/networking/textweb/w3m.xml	2012-02-18 17:09:33 UTC (rev 9462)
@@ -86,7 +86,8 @@
     commands:</para>
 
 <screen><userinput>sed -i 's/file_handle/file_foo/' istream.{c,h} &&
-./configure --prefix=/usr --sysconfdir=/etc LIBS=-lX11 &&
+sed -i 's#gdk-pixbuf-xlib-2.0#& x11#' configure &&
+./configure --prefix=/usr --sysconfdir=/etc &&
 make</userinput></screen>
 
     <para>This package does not come with a test suite.</para>
@@ -109,15 +110,13 @@
     function that has the same name, defined in
     /usr/include/bits/fcntl.h.</para>
 
+    <para><command>sed -i 's#gdk-pixbuf-xlib-2.0#& x11#'
+    configure</command>: This sed fixes compiling <application>w3m</application>
+    using <xref linkend="gtk2"/> as its image library. It has no impact if
+    <xref linkend="gtk2"/> is not installed.</para>
+
     <para><option>--sysconfdir=/etc</option>: This option puts the configuration
     files in /etc.</para>
-
-    <para><parameter>LIBS=-lX11</parameter>: This tells the linker
-    (<command>ld</command>) to link <application>w3m</application> to
-    <application>libX11</application>. Without this the build will fail. This
-    is only needed if you have installed <xref linkend="x-window-system"/>.
-    Remove <parameter>LIBS=-lX11</parameter> if you've not installed
-    <application>libX11</application>.</para>
   </sect2>
 
   <sect2 role="configuration">




More information about the blfs-book mailing list