Skip to contentSkip to conversation

directfb: Improve CFLAGS handling for x86

PATCH New Richard Purdie 1 participant 1 message May 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 directfb: Improve CFLAGS handling for x86

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.

meta/recipes-graphics/directfb/directfb.inc +1 -1
index 13495b1..e863b12 100644
@@ -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-.*"
 #