Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2002 16:45:51 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        John Scharles <johns@mostlydead.net>
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: linux_devtools-7.1
Message-ID:  <20021028004551.GA1416@dhcp01.pn.xcllnt.net>
In-Reply-To: <5.1.0.14.2.20021027144939.015e2730@mail.mostlydead.net>
References:  <5.1.0.14.2.20021027144939.015e2730@mail.mostlydead.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021028004551.GA1416>