This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: unneeded -D_GNU_SOURCE
On Tue, Oct 23, 2007 at 09:26:27AM +0200, Peter S. Mazinger wrote:
> Hello,
>
> I have cross-compiled binutils (2.18) in an environment, where though
> glibc headers are used, but _GNU_SOURCE is undefined in features.h
> immediately after it defines _XOPEN_SOURCE/_POSIX_SOURCE and the others
> (the target library does not provide any of the GNU extensions either) and
> found that binutils does not need any of the GNU extensions (meaning those
> guarded by __USE_GNU), haven't tracked down which are enough of all those
> defines, but _XOPEN_SOURCE and/or _POSIX_SOURCE could be more appropiate
> to reflect the reality.
Binutils is written portably. It isn't supposed to and does not
require _GNU_SOURCE. But it does detect some GNU extensions in
configure and use them if they are available (e.g. stpcpy).
--
Daniel Jacobowitz
CodeSourcery