Back to wiki

RCS History

/ TOP / cross-compile.mdwn

Revision 1.1


A complete cross compile system can be setup easily:

    $ cd binutils-2.18
    $ ./configure --target=mips-netbsdelf
    $ make&& make install
    $ cd ../pcc
    $ ./configure --target=mips-netbsdelf
    $ make&& make install

The compiler is called /usr/local/bin/mips-netbsdelf-pcc.

Copying the header files from the target machine into /usr/local/mips-netbsdelf/include and the libraries into /usr/local/mips-netbsdelf/lib is
sufficient to build binaries.

It's possible for multiple cross-compilers to exist on the host system at
the same time (which was the motivation for doing this!).

Powered by rcshistory.cgi 0.3