From owner-freebsd-questions Thu Jan 29 21:38:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA21639 for questions-outgoing; Thu, 29 Jan 1998 21:38:06 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA21566 for ; Thu, 29 Jan 1998 21:37:50 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id VAA01553; Thu, 29 Jan 1998 21:37:45 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Thu, 29 Jan 1998 21:37:45 -0800 (PST) From: Doug White Reply-To: Doug White To: KrOnUs cc: Questions Subject: Re: Compiling Linux Source -> Linux Binary on FreeBSD In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" On Thu, 29 Jan 1998, KrOnUs wrote: > > Hi all.. > > Is it possible to compile linux source code into a linux binary > so that it will run under the linux emulator under FreeBSD? > > I presume I've have to rip the include's etc. off of an existing linux box > and transfer them over to the BSD box but is there an easy way to do this? > (i.e making gcc look at the linux includes instead of the native > includes). What? AFAIK there are no Linux cross-compilers for FreeBSD. Just build the desired bits on the linux machine, copy over to the FreeBSD machine, load the linuxulator, run brandelf -t Linux binary if you need to, and have fun. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major