Title: [158866] trunk/Tools
Revision
158866
Author
[email protected]
Date
2013-11-07 13:30:58 -0800 (Thu, 07 Nov 2013)

Log Message

[Gtk] Disable LTO when building cairo
https://bugs.webkit.org/show_bug.cgi?id=123954

Patch by Nick Diego Yamane <[email protected]> on 2013-11-07
Reviewed by Martin Robinson.

Cairo always uses LTO, when it detects compiler support.
LTO is buggy in many/all versions of GCC and shouldn't be enabled by
default. This patch disables LTO when building cairo library.
- See: https://bugs.freedesktop.org/show_bug.cgi?id=60852

With gcc 4.7.3, for example, the build fails with the following message:
'lto1: fatal error: LTO_tags out of range: Range is 0 to 361, value is 15872'

* gtk/jhbuild.modules:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (158865 => 158866)


--- trunk/Tools/ChangeLog	2013-11-07 20:49:56 UTC (rev 158865)
+++ trunk/Tools/ChangeLog	2013-11-07 21:30:58 UTC (rev 158866)
@@ -1,3 +1,20 @@
+2013-11-07  Nick Diego Yamane  <[email protected]>
+
+        [Gtk] Disable LTO when building cairo
+        https://bugs.webkit.org/show_bug.cgi?id=123954
+
+        Reviewed by Martin Robinson.
+
+        Cairo always uses LTO, when it detects compiler support.
+        LTO is buggy in many/all versions of GCC and shouldn't be enabled by
+        default. This patch disables LTO when building cairo library.
+        - See: https://bugs.freedesktop.org/show_bug.cgi?id=60852
+
+        With gcc 4.7.3, for example, the build fails with the following message:
+        'lto1: fatal error: LTO_tags out of range: Range is 0 to 361, value is 15872'
+
+        * gtk/jhbuild.modules:
+
 2013-11-07  Samuel White  <[email protected]>
 
         AX: DRT AccessibilityUIElement::isFocused methods should be finished.

Modified: trunk/Tools/gtk/jhbuild.modules (158865 => 158866)


--- trunk/Tools/gtk/jhbuild.modules	2013-11-07 20:49:56 UTC (rev 158865)
+++ trunk/Tools/gtk/jhbuild.modules	2013-11-07 21:30:58 UTC (rev 158866)
@@ -67,7 +67,8 @@
   </autotools>
 
   <autotools id="cairo" autogen-sh="configure"
-             autogenargs="--enable-gl=yes --enable-egl=yes --enable-glx=yes">
+             autogenargs="--enable-gl=yes --enable-egl=yes --enable-glx=yes"
+             makeargs="CFLAGS=-fno-lto CXXFLAGS=-fno-lto LDFLAGS=-fno-lto">
     <dependencies>
       <dep package="fontconfig"/>
       <dep package="pixman"/>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to