On 2013-07-11 08:42, Chris Sutcliffe wrote:
> I'm trying to cross compile a 64-bit version of mksh using cygport on
> my 32-bit machine.

BTW, cygport discussion is on-topic on cygwin@ or cygwin-apps@.

> To that end I added the following to my 64-bit mksh cygport file:
>
> CROSS_HOST="x86_64-pc-cygwin"
>
> inherit cross

Incorrect.  cross.cygclass is solely for building libraries which are 
meant to be used by cross-compiler sysroots.

> It worked in so much as the x86_64 compilers were called, however the
> executable was installed to:
>
> usr/x86_64-pc-cygwin/sys-root/usr/bin/mksh.exe
>
> How do I setup the cygport file to install to usr/bin/mksh.exe (like
> the 32-bit cygport)?

When cross-compiling to Cygwin from the other arch, or from Linux, you 
use the same cygport(5) you use to build the file natively, then run:

# for 32-bit cygwin, from 64-bit or from Linux
cygport --32 mksh.cygport get prep ....

# for 64-bit cygwin, from 32-bit or from Linux
cygport --64 mksh.cygport get prep ....

Note that, for now, you must delete the working tree (or at least the 
build subdir thereof) between building for different arches.

HTH,


Yaakov


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to