Skip to contentSkip to conversation

directfb:filter out -fno-omit-frame-pointer option on x86 arch

PATCH New [email protected] 1 participant 2 messages Jun 14, 2013

lore
Share & tools
lore
#0 lore raw

cover directfb:filter out -fno-omit-frame-pointer option on x86 arch

From: "Roy.Li" <[email protected]>

The following changes since commit 1aeecaeee9bb1eee779973fce7f15cc7fad269a0:

classes/qmake_base: allow parallel make (2013-06-13 17:37:58 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib roy/directfd
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/directfd

Roy.Li (1):
directfb:filter out -fno-omit-frame-pointer option on x86 arch

 meta/recipes-graphics/directfb/directfb.inc |    4 ++++
 1 file changed, 4 insertions(+)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 directfb:filter out -fno-omit-frame-pointer option on x86 arch

From: "Roy.Li" <[email protected]>

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.

---
 meta/recipes-graphics/directfb/directfb.inc |    4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-graphics/directfb/directfb.inc +4 -0
index aecc834..cff8a7f 100644
@@ -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 () {
Signature · 1 line
1.7.10.4