From owner-freebsd-emulation Thu May 21 16:15:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA24622 for freebsd-emulation-outgoing; Thu, 21 May 1998 16:15:05 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles145.castles.com [208.214.165.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA24596 for ; Thu, 21 May 1998 16:14:55 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id PAA04965; Thu, 21 May 1998 15:11:06 -0700 (PDT) Message-Id: <199805212211.PAA04965@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Red Barchetta cc: freebsd-emulation@FreeBSD.ORG Subject: Re: compiling Linux binaries under FreeBSD? In-reply-to: Your message of "Thu, 21 May 1998 14:55:46 EDT." <3.0.5.32.19980521145546.00a0e2b0@pegasus.rutgers.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 21 May 1998 15:11:06 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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