Patchwork [1/1] directfb:filter out -fno-omit-frame-pointer option on x86 arch

login
register
mail settings
Submitter rongqing.li@windriver.com
Date June 14, 2013, 7:15 a.m.
Message ID <2411a8f23640c7b3b808912af78c6d5686d85539.1371194065.git.rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/51711/
State Accepted
Commit 38702506507e9b768995e28f3beebfc9d3c56c6c
Headers show

Comments

rongqing.li@windriver.com - June 14, 2013, 7:15 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

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>
---
 meta/recipes-graphics/directfb/directfb.inc |    4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/recipes-graphics/directfb/directfb.inc b/meta/recipes-graphics/directfb/directfb.inc
index aecc834..cff8a7f 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 () {