[oe-commits] Chris Larson : Work around ncurses-sdk & zlib-sdk build failures on CentOS 5.4
git version control
git at git.openembedded.org
Sun Jul 25 17:03:01 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: da26c362b6b32d52f755ca55bfc6cc0f9ddb42f6
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=da26c362b6b32d52f755ca55bfc6cc0f9ddb42f6
Author: Chris Larson <chris_larson at mentor.com>
Date: Sat Jul 24 22:28:22 2010 -0400
Work around ncurses-sdk & zlib-sdk build failures on CentOS 5.4
The issue here is that we're building ncurses with HOST==BUILD!=TARGET,
aka 'cross', yet we're applying a CFLAGS override based on the target, not
the host, which results in passing -fforward-propagate to the build
machine's gcc, which isn't supported in older versions.
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
recipes/ncurses/ncurses.inc | 3 +--
recipes/ncurses/ncurses_5.4.bb | 3 +++
recipes/zlib/zlib.inc | 6 ++++--
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/recipes/ncurses/ncurses.inc b/recipes/ncurses/ncurses.inc
index 3cf6a57..bebdeb4 100644
--- a/recipes/ncurses/ncurses.inc
+++ b/recipes/ncurses/ncurses.inc
@@ -32,8 +32,7 @@ export EXTRA_OEMAKE = '"BUILD_LDFLAGS=" "BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
# Below option is added to overcome the GCC bug on ARM
# see http://gcc.gnu.org/PR42981 for further details.
# We could potentially take it off when its fixed in gcc 4.5
-
-CFLAGS_append_arm = " -fforward-propagate "
+CFLAGS_EXTRA_append_arm = " -fforward-progagate"
# This is necessary so that the "tic" command executed during the install can
# link with the correct libary in staging.
diff --git a/recipes/ncurses/ncurses_5.4.bb b/recipes/ncurses/ncurses_5.4.bb
index 50231a0..5726110 100644
--- a/recipes/ncurses/ncurses_5.4.bb
+++ b/recipes/ncurses/ncurses_5.4.bb
@@ -12,7 +12,10 @@ LEAD_SONAME = "libncurses.so.5"
SRC_URI[md5sum] = "069c8880072060373290a4fefff43520"
SRC_URI[sha256sum] = "5abce063cf431790f4e6a801a96c7eea0b33a41ecd0970f6312f52575c083b36"
+CFLAGS += "${CFLAGS_EXTRA}"
BBCLASSEXTEND = "native nativesdk sdk"
+CFLAGS_EXTRA_virtclass-native = ""
+CFLAGS_EXTRA_virtclass-sdk = ""
DEPENDS_virtclass-native = ""
EXTRA_OEMAKE_virtclass-native = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
EXTRA_OEMAKE_virtclass-sdk = '"BUILD_CCFLAGS=${BUILD_CCFLAGS}"'
diff --git a/recipes/zlib/zlib.inc b/recipes/zlib/zlib.inc
index 5b00ccf..5c00acb 100644
--- a/recipes/zlib/zlib.inc
+++ b/recipes/zlib/zlib.inc
@@ -8,8 +8,10 @@ INC_PR ="r7"
# Below option is added to overcome the GCC bug on ARM
# see http://gcc.gnu.org/PR42981 for further details.
# We could potentially take it off when its fixed in gcc 4.5
-
-CFLAGS_append_arm = " -fforward-propagate "
+CFLAGS += "${CFLAGS_EXTRA}"
+CFLAGS_EXTRA_append_arm = " -fforward-propagate"
+CFLAGS_EXTRA_virtclass-native = ""
+CFLAGS_EXTRA_virtclass-sdk = ""
BBCLASSEXTEND = "native sdk"
More information about the Openembedded-commits
mailing list