Cross-compile on FreeBSD

Posted by: mcomb

Cross-compile on FreeBSD - 04/11/2002 16:17

Hey, just thought I would post this for posterity since compiling under FreeBSD has come up once or twice. The linux cross-compile toolchain hosted on Mark Lord's site will work under FreeBSD's linux emulation. I tried this a couple years ago and ran into multiple problems, but with newer version of everything it seems to work fine. Here are the requirements...

armtools-empeg from Mark's site installed in /usr/local/armtools-empeg
linux_base-7 FreeBSD port
linux_devtools-7 FreeBSD port
bash installed and link /usr/local/bin/bash to /bin/bash to make scripts happy
Prepend /usr/compat/linux/usr/bin/make to your path

I would assume that a proper cross compiler could be setup as well, but this is a lot less work and this way I am using the same compiler as most everybody else. This saves me the trouble of having to connect to my (very slow) linux box at work to do compiles and I thought it might be useful knowledge for somebody else.

-Mike
Posted by: djc

Re: Cross-compile on FreeBSD - 05/11/2002 08:07

thanks, i'm going to give this a try!

--dan.