Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 1998 15:11:06 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Red Barchetta <paradox@pegasus.rutgers.edu>
Cc:        freebsd-emulation@FreeBSD.ORG
Subject:   Re: compiling Linux binaries under FreeBSD? 
Message-ID:  <199805212211.PAA04965@antipodes.cdrom.com>
In-Reply-To: Your message of "Thu, 21 May 1998 14:55:46 EDT." <3.0.5.32.19980521145546.00a0e2b0@pegasus.rutgers.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> First of all, is it possible?  Second, how would one go about doing so?  I
> would assume that getting a Linux gcc binary would be a must, but do I need
> a linker as well?  And anything else?
> 
> I've got a bunch of C files that I need to build a Linux library from...
> nothing more complicated than that.
> 
> Any help/info would be appreciated.  Thanks!

Install the linux_devel package, then run /compat/linux/bin/sh.  This 
will do all the right things with regards to your search path, with *one*
exception.

If you run a GNU configure script (or similar), it will find the BSD
ranlib, and use that on your Linux libraries.  You can circumvent this 
by making an empty, executable 'ranlib' file somewhere in the Linux 
executable hierarchy (eg. /compat/linux/usr/bin).

Running the Linux-mode shell is fairly important; you can get by 
without it for simple things, but for more complex stuff you really 
want to have the right shell.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message



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