From owner-freebsd-questions@FreeBSD.ORG Thu Dec 1 21:24:20 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 3D85516A41F for ; Thu, 1 Dec 2005 21:24:20 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50D4A43D5C for ; Thu, 1 Dec 2005 21:24:12 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 52A5B1A4D83; Thu, 1 Dec 2005 13:23:58 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 7CEBA54A3E; Thu, 1 Dec 2005 16:23:57 -0500 (EST) Date: Thu, 1 Dec 2005 16:23:57 -0500 From: Kris Kennaway To: Javier Matos Message-ID: <20051201212352.GA6690@xor.obsecurity.org> References: <000601c5f6bb$13551ef0$0301a8c0@mindcrash> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: <000601c5f6bb$13551ef0$0301a8c0@mindcrash> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: gcc in freebsd to compile linux software 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: Thu, 01 Dec 2005 21:24:20 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 01, 2005 at 10:06:16PM +0100, Javier Matos wrote: > Hi, I need to compile a program to run it in a linux box. > I know that freebsd has linux compatibility with binary files. >=20 > Can I compile using freebsd gcc a binary file that can run under linux an= d try if it works with freebsd binary linux emulation?? >=20 > If it is possible... what kind of options need I to put when I compile wi= th gcc? No, but if you install a linux_devtools* port you can chroot to /compat/linux and build "as usual" with the linux gcc there. Kris --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDj2noWry0BWjoQKURAploAKD4oolKDGT/l6jwP5WGMHEsAVg41wCfTyNo abpCSDdGGRIs9RUz1/tN8oc= =6HBI -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--