aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ncurses
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2010-08-29 21:41:29 +0200
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2010-08-29 21:51:14 +0200
commit6f81dd32a13bf3f1a07ce0ebe7a654fa473ea302 (patch)
tree7bdee1c496ae69d96b66eda60fcade3e76184468 /recipes/ncurses
parent39294e54baf06ec0cf49658a1964ee67a619fb34 (diff)
downloadopenembedded-6f81dd32a13bf3f1a07ce0ebe7a654fa473ea302.tar.gz
ncurses: fixed widec builds for native targets
-D_GNU_SOURCE was not propagated when building native helper tools and must be added to CPPFLAGS hence. By fixing this, widec build can be enabled for native and sdk. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Diffstat (limited to 'recipes/ncurses')
-rw-r--r--recipes/ncurses/ncurses_5.7.bb10
1 files changed, 7 insertions, 3 deletions
diff --git a/recipes/ncurses/ncurses_5.7.bb b/recipes/ncurses/ncurses_5.7.bb
index a523163aea..32aee93d43 100644
--- a/recipes/ncurses/ncurses_5.7.bb
+++ b/recipes/ncurses/ncurses_5.7.bb
@@ -31,10 +31,14 @@ EXTRA_AUTORECONF = "-I m4"
CONFIG_SITE =+ "${WORKDIR}/config.cache"
# Whether to enable separate widec libraries; must be 'true' or 'false'
+#
+# TODO: remove this variable when widec is supported in every setup?
ENABLE_WIDEC = "true"
-# Build breaks on Ubuntu else :(
-ENABLE_WIDEC_virtclass-native = "false"
+# _GNU_SOURCE is required for widec stuff and is detected automatically
+# for target objects. But it must be set manually for native and sdk
+# builds.
+BUILD_CPPFLAGS += "-D_GNU_SOURCE"
# Override the function from the autotools class; ncurses requires a
# patched autoconf213 to generate the configure script. This autoconf
@@ -74,7 +78,7 @@ do_configure() {
--with-build-cpp="${BUILD_CPP}" \
--with-build-ld="${BUILD_LD}" \
--with-build-cflags="${BUILD_CFLAGS}" \
- --with-build-cppflags='${BUILD_CPPFLAGS} -D_GNU_SOURCE' \
+ --with-build-cppflags='${BUILD_CPPFLAGS}' \
--with-build-ldflags='${BUILD_LDFLAGS}' \
"$@"
cd ..