Date: Tue, 21 Jun 2005 13:57:02 -0300 From: Alejandro Pulver <alejandro@varnet.biz> To: "Chad Leigh -- Shire.Net LLC" <chad@shire.net> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Generating Linux binaries under FreeBSD Message-ID: <20050621135702.4e7537b3@phobos.mars.bsd> In-Reply-To: <7D730E14-8977-4B84-A272-72E77B187677@shire.net> References: <20050620121513.72790e30@phobos.mars.bsd> <7D730E14-8977-4B84-A272-72E77B187677@shire.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 Jun 2005 09:27:10 -0600 "Chad Leigh -- Shire.Net LLC" <chad@shire.net> wrote: > > 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 > Hello, Thank you for your reply. It is what I expected (to use the Linux emulation to run the compiler). But is there a FreeBSD port of it (I do not think that)? Can I use the Linux packaging tools (for example rpm with linux-base-rh*, and dpkg with linux-base-debian)? How? Thanks and Best Regards, Ale
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050621135702.4e7537b3>