Cross-compiling/porting to Linux

Michael Hopkins michael.hopkins at hopkins-research.com
Tue Mar 29 03:32:08 PST 2005



Hi all

I have just installed mingwin32 from the ports and it works beautifully -
can now port all my Unix command line code (including linking to win32
libraries) to win32 with the flick of a make switch.  Marvellous!

Now to linux...  I haven't tried any of the linux compatibility stuff yet,
either for running binaries or cross-compiling.  I thought I would ask here
first because I have seen quite a few messages suggesting potential issues
on amd64.  

At the moment I am mainly interested in cross-compiling and wanting to
target 32-bit linux, but obviously 64-bit will be useful in the future.
Would like to get some advice on what to install and any kernel
configuration or module loading that I might need to do.

On a related topic - I can see that there are ports for converting binaries
between different formats (e.g. ELF to a.out).  As there is already a
runtime compatibility established, how easy would it be to build something
that reads in a FreeBSD binary or library and outputs a linux one?  Just a
thought.

TIA

Michael


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

        _/    _/   _/_/_/             Hopkins Research Ltd
       _/    _/   _/    _/
      _/_/_/_/   _/_/_/          http://www.hopkins-research.com/
     _/    _/   _/   _/
    _/    _/   _/     _/               'touch the future'
                   
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/




More information about the freebsd-amd64 mailing list