Im thinking it might work.. A quick google search shows the following:
SUBJECT: RE: compiling Linux binaries under FreeBSD?
> First of all, is it possible? Second, how would one go about doing so? I
> would assume that getting a Linux gcc binary would be a must, but do I need
> a linker as well? And anything else?
> > I`ve got a bunch of C files that I need to build a Linux library from...
> nothing more complicated than that.
> > Any help/info would be appreciated. Thanks!
Install the linux_devel package, then run /compat/linux/bin/sh. This
will do all the right things with regards to your search path, with *one*
exception.
If you run a GNU configure script (or similar), it will find the BSD
ranlib, and use that on your Linux libraries. You can circumvent this
by making an empty, executable `ranlib` file somewhere in the Linux
executable hierarchy (eg. /compat/linux/usr/bin).
Running the Linux-mode shell is fairly important; you can get by
without it for simple things, but for more complex stuff you really
want to have the right shell.
I guess ive never tried writing linux specific code on BSD b4