[Webkit-unassigned] [Bug 139056] [jhBuild] cairo build error (-flto)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 26 01:43:20 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=139056

--- Comment #1 from Fabien Vallée <fvallee at connected-labs.com> ---
The issue can be fixed in Tools/gtk/jhbuild.modules updating the cairo section:

-  <autotools id="cairo" autogen-sh="configure"
-             autogenargs="--enable-gl=yes --enable-egl=yes --enable-glx=yes ac_cv_func_rsvg_pixbuf_from_file=no"
-             makeargs="CFLAGS=-fno-lto CXXFLAGS=-fno-lto LDFLAGS=-fno-lto">
+  <autotools id="cairo"
+             autogenargs="--enable-gl=yes --enable-egl=yes --enable-glx=yes ac_cv_func_rsvg_pixbuf_from_file=no --disable-lto"
+             makeargs="">
     <dependencies>
       <dep package="fontconfig"/>
       <dep package="pixman"/>
@@ -71,6 +71,7 @@
             repo="cairographics.org"
             hash="sha256:8fbb6fc66117ab4100bad830cb4479497e53c6f3facb98bf05c8d298554ebdd9"
             md5sum="8b3dcade859c44fb7e56fc68edfe9a45">
+      <patch file="cairo-1.12.8-add_disable-lto.patch" strip="1"/>
     </branch>
   </autotools>


1) apply cairo commit "configure.ac: Add a --disable-lto configure option"
http://cgit.freedesktop.org/cairo/commit/?id=c3645d97ebd24c6f7ad850785d585aebc706a11c

2) add the --disable-lto to autogenargs

3) remove makeargs (CFLAGS=-fno-lto CXXFLAGS=-fno-lto LDFLAGS=-fno-lto)

4) remove autogen-sh="configure" to force the updated configure.ac to be reparsed

I don't think the changes are good enough to be submitted as-is (but they are good enough to fix my build and are not breaking build w/ gcc 4.8.1 / ld 2.23.2).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141126/751c05d5/attachment-0002.html>


More information about the webkit-unassigned mailing list