[PATCH/RFC] Improve cross-compile support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A first attempt at making cross-compile viable is attached.

Specifically we:
 - Propagate the target OS from configure to Makefile so we dont need uname
 - Allow CROSS_COMPILE for toolchain prefix, which is common (e.g. Linux)
 - Allow wordsize and bigendian to be set statically.  These are
usually determined by executing a test program, which obviously
doesn't work for cross compiles.
 - Make the Android config dynamic (but set wordsize/bigendian)

Now the wordsize/bigendian handling is not ideal but I can't think of
a better approach right now.

Also I've changed the #includes in the socklet_t check.  sys/socket.h
appears to be the right thing, but please check.

Compile tested on Linux/i386 native, Linux/i386 to Android cross
compile, and OS X native.


  -- Aaron

Attachment: 0001-Improve-cross-compile-support.patch
Description: Binary data


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux