Suggestion: improve cross-compiling ability

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
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:

http://sourceware.org/ml/newlib/2013/msg00521.html
http://sourceware.org/ml/newlib-cvs/2013-q3/msg00005.html

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.

HTH,


Yaakov


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list