Generating Linux binaries under FreeBSD
Chad Leigh -- Shire.Net LLC
chad at shire.net
Mon Jun 20 15:27:12 GMT 2005
On Jun 20, 2005, at 9:15 AM, Alejandro Pulver wrote:
> Hello,
>
> Is there a way to compile a C program, but generating a Linux binary
> instead of a FreeBSD one?
I don't know if this works but assuming you have the linux
compatibility layer running
% chroot /compat/linux/ /bin/bash
% gcc
That should use the linux gcc
You may not need to do the chroot first. Just run a linux shell
so
% /compat/linux/bin/bash
bash-2.0x# gcc
may also get you there
I've done similar things before
Try it out
Chad
>
> Thanks and Best Regards,
> Ale
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe at freebsd.org"
>
---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net
More information about the freebsd-questions
mailing list