]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
directfb: Improve CFLAGS handling for x86
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 May 2015 10:27:24 +0000 (11:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 May 2015 10:43:52 +0000 (11:43 +0100)
The problem with filter_out is that it expands the variable meaning overrides
to sub components can get lost. This has happening to the security flags
meaning directfb failed in lsb builds.

Use _remove instead of filter_out since it gives much more predictable results.

(From OE-Core rev: 9484fb04c0ed8b3e08c6773662dc7a0f01cb39a8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/directfb/directfb.inc

index 13495b167dfddf2943729c945a018502d697e673..e863b12094cf85cab3a435da4b86fee7335dd1ca 100644 (file)
@@ -42,7 +42,7 @@ EXTRA_OECONF = "\
 
 #Once -fno-omit-frame-pointer option of gcc is added into TARGET_CLFAGS as default
 #this will cause directfb build failure on x86 arch, so filter out it.
-TARGET_CFLAGS_x86 := "${@oe_filter_out('-fno-omit-frame-pointer', '${TARGET_CFLAGS}', d)}"
+TARGET_CFLAGS_remove_x86 = "-fno-omit-frame-pointer"
 
 #PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*"
 #