]> code.ossystems Code Review - openembedded-core.git/commitdiff
pango: unset LDFLAGS when building gen_all_unicode
authorRoss Burton <ross.burton@intel.com>
Thu, 4 Feb 2016 16:29:53 +0000 (16:29 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 6 Feb 2016 23:08:56 +0000 (23:08 +0000)
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/pango/pango_1.38.1.bb

index d408ef00e19c039641ee042a6e99d227cebb5dd2..3e57dc22753305f783e8ca0922bc74a1565c6995 100644 (file)
@@ -35,7 +35,7 @@ LIBV = "1.8.0"
 # This binary needs to be compiled for the host architecture.  This isn't pretty!
 do_compile_prepend_class-target () {
        if ${@base_contains('DISTRO_FEATURES', 'ptest', 'true', 'false', d)}; then
-               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
+               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
        fi
 }