[blfs-book] r9359 - trunk/BOOK/pst/printing

andy at linuxfromscratch.org andy at linuxfromscratch.org
Fri Feb 10 15:27:49 PST 2012


Author: andy
Date: 2012-02-10 16:27:44 -0700 (Fri, 10 Feb 2012)
New Revision: 9359

Modified:
   trunk/BOOK/pst/printing/gs.xml
Log:
use LIBS instead of a sed

Modified: trunk/BOOK/pst/printing/gs.xml
===================================================================
--- trunk/BOOK/pst/printing/gs.xml	2012-02-10 23:18:59 UTC (rev 9358)
+++ trunk/BOOK/pst/printing/gs.xml	2012-02-10 23:27:44 UTC (rev 9359)
@@ -161,8 +161,7 @@
     <para>Compile <application>Ghostscript</application>:</para>
 
 <screen><userinput>rm -rf jasper lcms zlib &&
-./configure --prefix=/usr --enable-dynamic --with-system-libtiff &&
-sed -i '/^EXTRALIBS/s# -ldl# -lz#' Makefile &&
+./configure --prefix=/usr --enable-dynamic --with-system-libtiff LIBS=-lz &&
 make</userinput></screen>
 
     <note>
@@ -215,24 +214,19 @@
     <application>Ghostscript</application> build system defaults to using its
     own version of <ulink url="http://www.openjpeg.org/">OpenJpeg</ulink> for
     JPEG 2000 files <!-- I can't get it to compile using a system installed
-    version of openjpeg. I'll come back to this, it seems the ghostscript
-    version is quite old --> so we can all remove the jasper source. The
-    default color management system is now <application>lcms2</application> so
-    the <application>lcms</application> source is not needed.
+    version of openjpeg. It seems the ghostscript version has been heavily
+    modified... --> so we can all remove the jasper source. The default color
+    management system is now <application>lcms2</application> so the
+    <application>lcms</application> source is not needed.
     <application>Zlib</application> was installed as part of LFS.</para>
 
     <para><option>--with-system-libtiff</option>: Remove this option if you've
     not installed <xref linkend="libtiff"/>.</para>
 
-    <para><command>sed -i '/^EXTRALIBS/s# -ldl# -lz#' Makefile</command>:
-    This sed is needed to get it to link against the system installed
+    <para><parameter>LIBS=-lz</parameter>: We use the LIBS variable to tell the
+    linker (ld) to link against the system installed
     <application>zlib</application>.</para>
 
-    <para><option>--without-jbig2dec</option>: The <literal>JBIG2</literal>
-    decompression code (used for some faxes) can be disabled by using this
-    switch and removing the <filename class="directory">jbig2dec/</filename>
-    source.</para>
-
     <para><command>install -v -m644 base/*.h...</command>: Some packages
     (<application>ImageMagick</application> is one) need the
     <application>Ghostscript</application> interface headers in place to link




More information about the blfs-book mailing list