cross-compiling strace 4.20 for ARM

Dmitry V. Levin ldv at altlinux.org
Wed Nov 22 10:53:34 UTC 2017


On Wed, Nov 22, 2017 at 11:37:04AM +0100, Felix von Leitner wrote:
> > > Are you sure about this?
> > It's _XOPEN_SOURCE, but as configure.ac contains AC_USE_SYSTEM_EXTENSIONS,
> > I suppose _GNU_SOURCE is defined anyway.
> 
> I do get the symbol when I define _XOPEN_SOURCE:
> 
>   $ printf "#include <limits.h>\\nIOV_MAX" | arm-linux-gnueabi-gcc -D_XOPEN_SOURCE -E -
> 
> Something else must be broken here.
> Not sure what though.

AC_USE_SYSTEM_EXTENSIONS normally causes the following code
to be added to config.h file:

/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20171122/e413c5b0/attachment.bin>


More information about the Strace-devel mailing list