From owner-freebsd-questions@freebsd.org Sat Oct 3 09:01:55 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5AE12A0E3EA for ; Sat, 3 Oct 2015 09:01:55 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01.mail.uk1.eechost.net [217.69.40.69]) by mx1.freebsd.org (Postfix) with ESMTP id 2AD961645 for ; Sat, 3 Oct 2015 09:01:54 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [88.151.27.41] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1ZiITm-0000vv-Jd for freebsd-questions@freebsd.org; Sat, 03 Oct 2015 09:47:42 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.marelmo.com with smtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZiITl-0008ZJ-BQ for freebsd-questions@freebsd.org; Sat, 03 Oct 2015 08:47:41 +0000 Date: Sat, 3 Oct 2015 09:47:41 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Cross-compiling under FreeBSD for a Linux target Message-Id: <20151003094741.2b33814f3a9c08854915e24f@sohara.org> In-Reply-To: <20150928174810.GA42238@MacPorter.local> References: <20150928174810.GA42238@MacPorter.local> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 24227@permanet.ie (plain) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Oct 2015 09:01:55 -0000 On Mon, 28 Sep 2015 12:48:10 -0500 "J. Porter Clark" wrote: > Is there a way, under FreeBSD, to compile a program so that it > will run on a Linux target, specifically the same 32-bit Centos > 6 that the emulators/linux-c6 port uses? The linux-c6-devtools port appears to contain the requisite tools for the job - I've never tried it though. Failing that it is quite easy to run Centos 6 userland in a jail. -- Steve O'Hara-Smith