--- /cross-compiler.mdwn 2007/12/01 02:43:55 1.4 +++ /cross-compiler.mdwn 2007/12/01 02:45:33 1.5 @@ -1,11 +1,12 @@ A complete cross compile system can be setup easily. For example: -$ cd binutils-2.18 -$ ./configure --target=mips-netbsdelf -$ make&& make install -$ cd ../pcc -$ ./configure --target=mips-netbsdelf -$ make&& make install + $ cd binutils-2.18 + $ ./configure --target=mips-netbsdelf + $ make&& make install + $ cd ../pcc + $ ./configure --target=mips-netbsdelf + $ make&& make install + The compiler from the above example 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.
Powered by rcshistory.cgi 0.3