[oe-commits] Roy.Li : directfb:filter out -fno-omit-frame-pointer option on x86 arch

git at git.openembedded.org git at git.openembedded.org
Tue Jul 9 09:45:56 UTC 2013


Module: openembedded-core.git
Branch: dylan
Commit: 7494dcf0c33a2bf256d9f43432113425e0f5ddbe
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7494dcf0c33a2bf256d9f43432113425e0f5ddbe

Author: Roy.Li <rongqing.li at windriver.com>
Date:   Fri Jun 14 15:15:22 2013 +0800

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.

(From OE-Core master rev: 07f4030909dcc14c4ce4d6d3690a192c0b4040a9)

Signed-off-by: Roy.Li <rongqing.li at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-graphics/directfb/directfb.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

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 () {



More information about the Openembedded-commits mailing list