r6324 - in trunk/BOOK: introduction/welcome x/lib

dnicholson at linuxfromscratch.org dnicholson at linuxfromscratch.org
Sun Oct 1 10:16:35 PDT 2006


Author: dnicholson
Date: 2006-10-01 11:16:32 -0600 (Sun, 01 Oct 2006)
New Revision: 6324

Modified:
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/x/lib/mesalib.xml
Log:
Added compiler flags to fix #2103. Changed default target to linux-dri-x86.


Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2006-10-01 16:52:29 UTC (rev 6323)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2006-10-01 17:16:32 UTC (rev 6324)
@@ -45,6 +45,12 @@
       <para>October 1st, 2006</para>
       <itemizedlist>
         <listitem>
+          <para>[dnicholson] - Fixed an issue with with rendering of OpenGL
+          applications with MesaLib by adding an appropriate compiler flag.
+          Thanks to Alexander Patrakov for the report and the fix. Closes
+          ticket #2103.</para>
+        </listitem>
+        <listitem>
           <para>[dnicholson] - Fixed an error with output redirection
           in MesaLib when /bin/sh is not Bash. Fixes ticket #2118.</para>
         </listitem>

Modified: trunk/BOOK/x/lib/mesalib.xml
===================================================================
--- trunk/BOOK/x/lib/mesalib.xml	2006-10-01 16:52:29 UTC (rev 6323)
+++ trunk/BOOK/x/lib/mesalib.xml	2006-10-01 17:16:32 UTC (rev 6324)
@@ -116,7 +116,7 @@
     <para>Build <application>MesaLib</application>
     by running the following command:</para>
 
-<screen><userinput>make linux-dri</userinput></screen>
+<screen><userinput>make OPT_FLAGS="-O2 -fno-strict-aliasing" linux-dri-x86</userinput></screen>
 
     <para>This package does not come with a test suite.</para>
 
@@ -171,6 +171,14 @@
     src/glx/x11/dri_glx.c</command>: This command corrects a hard coded
     reference to the module directory.</para>
 
+    <para><command>make OPT_FLAGS=... linux-dri-x86</command>: A bug where
+    OpenGL applications are shifted to the left by 50% can be worked around
+    by adding <option>-fno-strict-aliasing</option> to the compiler flags.
+    Also, the <option>linux-dri-x86</option> target is specified to use a
+    few other helpful flags in addition to the defaults. See the other
+    targets in the <filename class="directory">configs</filename> directory
+    if your architecture is not x86.</para>
+
     <para><command>bin/installmesa</command>: Mesa uses a custom installation
     script as opposed to the normal <parameter>install</parameter> make
     target.</para>




More information about the blfs-book mailing list