]> code.ossystems Code Review - openembedded-core.git/commitdiff
directfb:filter out -fno-omit-frame-pointer option on x86 arch
authorRoy.Li <rongqing.li@windriver.com>
Fri, 14 Jun 2013 07:15:22 +0000 (15:15 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jun 2013 15:44:36 +0000 (16:44 +0100)
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 <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-graphics/directfb/directfb.inc

index aecc834b1bdcca558beceb0f54d706a2e4f4bd30..cff8a7f3120486374eb1b063b6d7f80195f964e3 100644 (file)
@@ -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 () {