From owner-freebsd-questions@FreeBSD.ORG Mon Jun 20 15:27:12 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A029816A420 for ; Mon, 20 Jun 2005 15:27:12 +0000 (GMT) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (hobbiton.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 777CA43D49 for ; Mon, 20 Jun 2005 15:27:12 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.161.222.227] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpa (Exim 4.51) id 1DkOB5-000BFP-3B; Mon, 20 Jun 2005 09:27:11 -0600 In-Reply-To: <20050620121513.72790e30@phobos.mars.bsd> References: <20050620121513.72790e30@phobos.mars.bsd> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7D730E14-8977-4B84-A272-72E77B187677@shire.net> Content-Transfer-Encoding: 7bit From: "Chad Leigh -- Shire.Net LLC" Date: Mon, 20 Jun 2005 09:27:10 -0600 To: Alejandro Pulver X-Mailer: Apple Mail (2.730) X-SA-Exim-Connect-IP: 67.161.222.227 X-SA-Exim-Mail-From: chad@shire.net X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on hobbiton.shire.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50, GREYLIST_ISWHITE autolearn=disabled version=3.0.3 X-SA-Exim-Version: 4.2 (built Mon May 30 00:43:02 MDT 2005) X-SA-Exim-Scanned: Yes (on hobbiton.shire.net) Cc: freebsd-questions Subject: Re: Generating Linux binaries under FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 15:27:12 -0000 On Jun 20, 2005, at 9:15 AM, Alejandro Pulver wrote: > Hello, > > Is there a way to compile a C program, but generating a Linux binary > instead of a FreeBSD one? I don't know if this works but assuming you have the linux compatibility layer running % chroot /compat/linux/ /bin/bash % gcc That should use the linux gcc You may not need to do the chroot first. Just run a linux shell so % /compat/linux/bin/bash bash-2.0x# gcc may also get you there I've done similar things before Try it out Chad > > Thanks and Best Regards, > Ale > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" > --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad@shire.net