summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-02-04 16:29:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-06 23:10:44 +0000
commit8fa2d52dfcd298f7814c4686314ebcba2247f487 (patch)
tree232504ef5755d8e24fd52be398f55e5de2ac66ba /meta
parentedfaa04ce3e190ddb9be747c0e5537587a93a465 (diff)
downloadpoky-8fa2d52dfcd298f7814c4686314ebcba2247f487.tar.gz
pango: unset LDFLAGS when building gen_all_unicode
When building the native gen_all_unicode binary we need to also unset LDFLAGS as otherwise the *target* LDFLAGS will be used. At best the options are harmless but if there are options that the host compiler doesn't support then the compile will fail. For example, if the host gcc is version 4.8 but LDFLAGS contains -fstack-protector-strong which in 4.9 onwards. (From OE-Core rev: 20031e167f772ce2eb3ba4b93adb82c1f4805d42) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/pango/pango_1.38.1.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-graphics/pango/pango_1.38.1.bb b/meta/recipes-graphics/pango/pango_1.38.1.bb
index d408ef00e1..3e57dc2275 100644
--- a/meta/recipes-graphics/pango/pango_1.38.1.bb
+++ b/meta/recipes-graphics/pango/pango_1.38.1.bb
@@ -35,7 +35,7 @@ LIBV = "1.8.0"
35# This binary needs to be compiled for the host architecture. This isn't pretty! 35# This binary needs to be compiled for the host architecture. This isn't pretty!
36do_compile_prepend_class-target () { 36do_compile_prepend_class-target () {
37 if ${@base_contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then 37 if ${@base_contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then
38 make CC="${BUILD_CC}" CFLAGS="" AM_CPPFLAGS="$(pkg-config-native --cflags glib-2.0)" gen_all_unicode_LDADD="$(pkg-config-native --libs glib-2.0)" -C ${B}/tests gen-all-unicode 38 make CC="${BUILD_CC}" CFLAGS="" LDFLAGS="" AM_CPPFLAGS="$(pkg-config-native --cflags glib-2.0)" gen_all_unicode_LDADD="$(pkg-config-native --libs glib-2.0)" -C ${B}/tests gen-all-unicode
39 fi 39 fi
40} 40}
41 41