Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2000 18:16:11 +0000
From:      Marcel Moolenaar <marcel@cup.hp.com>
To:        Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Cc:        freebsd-emulation@FreeBSD.ORG
Subject:   Re: How to link a Linux program under FreeBSD ?
Message-ID:  <38B2D26B.8E280F5C@cup.hp.com>
References:  <20000221214203.A72944@internal>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38B2D26B.8E280F5C>