From: Roy.Li Date: Fri, 14 Jun 2013 07:15:22 +0000 (+0800) Subject: directfb:filter out -fno-omit-frame-pointer option on x86 arch X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~36978 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07f4030909dcc14c4ce4d6d3690a192c0b4040a9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git directfb:filter out -fno-omit-frame-pointer option on x86 arch directfb need -fomit-frame-pointer option of gcc to build some inline asm code about mmx. But once -fno-omit-frame-pointer was added into TARGET_CFLAGS. That will cause directfb build error on x86 arch. Signed-off-by: Roy.Li Signed-off-by: Saul Wold --- diff --git a/meta/recipes-graphics/directfb/directfb.inc b/meta/recipes-graphics/directfb/directfb.inc index aecc834b1bd..cff8a7f3120 100644 --- a/meta/recipes-graphics/directfb/directfb.inc +++ b/meta/recipes-graphics/directfb/directfb.inc @@ -34,6 +34,10 @@ EXTRA_OECONF = "\ --disable-mesa \ " +#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)}" + #PACKAGES_DYNAMIC += "^directfb-inputdrivers-.*" # #python populate_packages_prepend () {