Author: randy
Date: 2006-04-02 06:56:44 -0600 (Sun, 02 Apr 2006)
New Revision: 5796

Modified:
   trunk/BOOK/general/genlib/gwrap.xml
Log:
Modified the build commands in the G-Wrap instructions so that it will build 
correctly when using GLib-1

Modified: trunk/BOOK/general/genlib/gwrap.xml
===================================================================
--- trunk/BOOK/general/genlib/gwrap.xml 2006-04-02 12:11:28 UTC (rev 5795)
+++ trunk/BOOK/general/genlib/gwrap.xml 2006-04-02 12:56:44 UTC (rev 5796)
@@ -70,9 +70,15 @@
     <bridgehead renderas="sect3">G-Wrap Dependencies</bridgehead>
 
     <bridgehead renderas="sect4">Required</bridgehead>
-    <para role="required"><xref linkend="guile"/> and
-    <xref linkend="GLib"/></para>
+    <para role="required"><xref linkend="guile"/>, and
+    <xref linkend="GLib"/> or <xref linkend="glib2"/></para>
 
+    <para>If you are building <application>G-Wrap</application> as a dependency
+    for <application>GnuCash</application>, ensure you have
+    <application>GLib</application>-1 installed and you pass the
+    <envar>GLIB_XXX</envar> environment variables to the
+    <command>configure</command> script as shown below.</para>
+
     <bridgehead renderas="sect4">Optional</bridgehead>
     <para role="optional"><xref linkend="gcc"/> (build Java so that
     <filename class='libraryfile'>libffi</filename> is built),
@@ -87,7 +93,9 @@
     <para>Install <application>G-Wrap</application> by running the following
     commands:</para>
 
-<screen><userinput>./configure --prefix=/usr &amp;&amp;
+<screen><userinput>GLIB_CFLAGS=$(glib-config --cflags) \
+GLIB_LIBS=$(glib-config --libs) \
+./configure --prefix=/usr &amp;&amp;
 make</userinput></screen>
 
     <para>The test suite for this package is currently broken.</para>
@@ -98,6 +106,20 @@
 
   </sect2>
 
+  <sect2 role="commands">
+    <title>Command Explanations</title>
+
+    <para><command>GLIB_CFLAGS=$(glib-config ...) GLIB_LIBS=$(glib-config ...)
+    ./configure ...</command>: The <command>configure</command> script does
+    not pull in the proper <application>GLib</application>-1 
+    <envar>CFLAGS</envar> and <envar>LIBS</envar> parameters so
+    <command>glib-config</command> is used to set them. Omit setting them like
+    this if you are not building <application>G-Wrap</application> as a
+    dependency for <application>GnuCash</application> and only issue the
+    <command>./configure</command> command instead.</para>
+
+  </sect2>
+
   <sect2 role="content">
     <title>Contents</title>
 

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to