> Is this only needed when cross-building or should the ncurses build
> always set -D_GNU_SOURCE when building make_hash & make_keys? What's
> the error you get otherwise?
It's needed for cross-building because the configure script can only
do checks for one compile-environment, and the source you're building
with includes headers that rely on the extra checks. When not cross
compiling, those are built using the flags used for the target.
I simplified that last month in this change, making the extra
flags unneeded:
20100522
+ simplify include-dependencies of make_hash and make_keys, to reduce
the need for setting BUILD_CPPFLAGS in cross-compiling when the
build- and target-machines differ.
Quoting Loïc Minier <email address hidden>:
> Is this only needed when cross-building or should the ncurses build
> always set -D_GNU_SOURCE when building make_hash & make_keys? What's
> the error you get otherwise?
It's needed for cross-building because the configure script can only environment, and the source you're building
do checks for one compile-
with includes headers that rely on the extra checks. When not cross
compiling, those are built using the flags used for the target.
I simplified that last month in this change, making the extra
flags unneeded:
20100522 dependencies of make_hash and make_keys, to reduce
+ simplify include-
the need for setting BUILD_CPPFLAGS in cross-compiling when the
build- and target-machines differ.