Suggestion: improve cross-compiling ability
Wed Jul 10 04:23:00 GMT 2013
On 2013-07-08 07:07, Fedin Pavel wrote:
> Hello! I have got one small idea on how to improve compatibility with
> cross-compiling Linux software. This time it's glibc.
> At certain point glibc's rpcgen program (which is being compiled for host),
> relies on '#ifndef __u_char_defined' and '#ifndef __daddr_t_defined' in
> order to determine presence of 'u_char' and 'daddr_t' respectively (see
> libc/sunrpc/rpc/types.h). I have to patch this to add _BSDTYPES_DEFINED
> check in order to be able to cross-build glibc under Cygwin.
> What if we add also these Linux-style definitions to our includes ?
Actually, I just fixed this in CVS last week:
This will be in Cygwin 1.7.21 when released; in the meantime, it is safe
to apply that patch to your existing /usr/include/sys/types.h.
BTW, following up on the previous discussion wrt cross-compiling the
Linux kernel, my stdint patch is now in the kbuild and linux-next trees
as commit b35310627f396efcc25d71fb343b3aa02039d20d; hopefully it will
get into 3.11, but it is also necessary for (and applies clean to) all
stable branches since 3.3.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin