summaryrefslogtreecommitdiff
path: root/meta/recipes-graphics/cairo
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2014-04-25 00:14:16 -0700
committerSaul Wold <sgw@linux.intel.com>2014-05-05 23:08:17 -0700
commit858f01ab9613c2b122718c350da763f8fe981d9f (patch)
treea9ce4d6b205d6ddb1eae3b10e6378d5c35085fca /meta/recipes-graphics/cairo
parentd4573cb750bfde488682244d30266dfe675bac06 (diff)
downloadopenembedded-core-858f01ab9613c2b122718c350da763f8fe981d9f.tar.gz
openembedded-core-858f01ab9613c2b122718c350da763f8fe981d9f.tar.bz2
openembedded-core-858f01ab9613c2b122718c350da763f8fe981d9f.zip
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. (From OE-Core rev: c4e65e14fbdf957aa34e074337c5649a0b0888b7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/cairo')
-rw-r--r--meta/recipes-graphics/cairo/cairo.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cairo/cairo.inc b/meta/recipes-graphics/cairo/cairo.inc
index c0af1e3632..cd375597f0 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"