[oe-commits] Khem Raj : cairo: Fix build with gcc 4.9

git at git.openembedded.org git at git.openembedded.org
Sun May 4 08:29:46 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: bff394cc47078bab41103bea3fca9578a8785900
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=bff394cc47078bab41103bea3fca9578a8785900

Author: Khem Raj <raj.khem at gmail.com>
Date:   Fri Apr 25 00:14:16 2014 -0700

cairo: Fix build with gcc 4.9

Fix upstream bug
https://bugs.freedesktop.org/show_bug.cgi?id=77060

gcc 4.9 now generates slim objects when LTO is used
These slim objects only contain intermediate language
representation for LTO. Use -ffat-lto-objects to create files which
contain additionally the object code. When linking some .so file, the option
'-flto' is missed, so the error happens.
We add '-ffat-lto-objects' flag to make gcc 4.9 behaves the same as gcc 4.8.

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 meta/recipes-graphics/cairo/cairo.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-graphics/cairo/cairo.inc b/meta/recipes-graphics/cairo/cairo.inc
index c0af1e3..cd37559 100644
--- a/meta/recipes-graphics/cairo/cairo.inc
+++ b/meta/recipes-graphics/cairo/cairo.inc
@@ -35,3 +35,5 @@ export ac_cv_lib_bfd_bfd_openr="no"
 export ac_cv_lib_lzo2_lzo2a_decompress="no"
 
 BBCLASSEXTEND = "native"
+
+CFLAGS += "-ffat-lto-objects"



More information about the Openembedded-commits mailing list