From owner-freebsd-emulation Tue Feb 22 10:16:30 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from atlrel2.hp.com (atlrel2.hp.com [156.153.255.202]) by hub.freebsd.org (Postfix) with ESMTP id 04B1637B72D for ; Tue, 22 Feb 2000 10:16:28 -0800 (PST) (envelope-from marcel@cup.hp.com) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by atlrel2.hp.com (Postfix) with ESMTP id C95F28E9 for ; Tue, 22 Feb 2000 13:16:32 -0500 (EST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0.1) id KAA27513; Tue, 22 Feb 2000 10:16:20 -0800 (PST) Message-ID: <38B2D26B.8E280F5C@cup.hp.com> Date: Tue, 22 Feb 2000 18:16:11 +0000 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Andre Albsmeier Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: How to link a Linux program under FreeBSD ? References: <20000221214203.A72944@internal> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andre Albsmeier wrote: > > I have linux_base and linux_devel installed on STABLE-3.4 > Now let's assume I have the following object files: > > main.o obj1.o obj2.o Let's also assume that these objects are Linux-objects... > How can I link these together so that a Linux binary is produced? > Of course, I also want the Linux statup code and the linux libc... The easiest way is to run a Linux shell (ie /compat/linux/bin/bash). Within that shell you just type something like: cc -o whatyatalkaboutwillis main.o obj1.o obj2.o Rule of thumb: From within a Linux shell you always pick up the linux binaries and not the FreeBSD native ones. -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message