Skip to content

Commit

Permalink
ncurses: fixed widec builds for native targets
Browse files Browse the repository at this point in the history
-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>
  • Loading branch information
ensc committed Aug 29, 2010
1 parent 39294e5 commit 6f81dd3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions recipes/ncurses/ncurses_5.7.bb
Expand Up @@ -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
Expand Down Expand Up @@ -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 ..
Expand Down

0 comments on commit 6f81dd3

Please sign in to comment.