Back to wiki

RCS History

/ TOP / cross-compile.mdwn

Revision 1.4


If you want to cross-compile pcc (from a build machine to a different host machine):

    $ export CC=mips-netbsdelf-pcc
    $ ./configure --host=mips-netbsdelf
    $ make&& make install

This will build pcc into a mipsel binary for running on NetBSD.

__redefinition of yytext__

Configure tries to detect whether the implementation of lex defines yyext as a char * or char[].  Since the binary will eventually run on a host machine different to the build machine, configure will test the host version of lex.  For this to work properly, you must ensure that libfl.a is available in your cross-compiler environment.

Powered by rcshistory.cgi 0.3