Comment 10 for bug 598389

Revision history for this message
Thomas Dickey (dickey-his) wrote : Re: [Bug 598389] Re: Cross build needs rpath with xdeb

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
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.