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@mentor.com>
# 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.
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}"'
# 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"