From owner-freebsd-ports Sun Oct 27 15:43:26 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EE2437B401 for ; Sun, 27 Oct 2002 15:43:25 -0800 (PST) Received: from kayak.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4A5743E7B for ; Sun, 27 Oct 2002 15:43:24 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.12.6/8.12.6) with ESMTP id g9RNhO0N070043; Sun, 27 Oct 2002 15:43:24 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id g9S0jp4g001444; Sun, 27 Oct 2002 16:45:51 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6/Submit) id g9S0jpas001443; Sun, 27 Oct 2002 16:45:51 -0800 (PST) Date: Sun, 27 Oct 2002 16:45:51 -0800 From: Marcel Moolenaar To: John Scharles Cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: linux_devtools-7.1 Message-ID: <20021028004551.GA1416@dhcp01.pn.xcllnt.net> References: <5.1.0.14.2.20021027144939.015e2730@mail.mostlydead.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20021027144939.015e2730@mail.mostlydead.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Oct 27, 2002 at 02:54:09PM -0800, John Scharles wrote: > Hi Marcel > > Since you're the keeper of devtools I thought you'd be the best person to > ask. I dropped maintainership, so it doesn't really hold anymore :-) > I've installed 7.1 linux base and devtools, and now I'd like to try > compiling a linux app and see if I can get it to run on freebsd. Is there > an easy way to setup the environment so that when I'm using linux source > it'll use the /compat/linux directories rather than the normal bsd ones? The best way is to do all the development from within a Linux shell (ie /compat/linux/bin/bash or variant). Since the shell is a Linux binary, any algorithm performed by the shell to find binaries will be subject to the mapping performed by the linux kernel module. Thus, in a nutshell, you'll be running the Linux versions of well-known tools if they exist, including compiler. The compiler driver will do the rest. HTH, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message