From owner-freebsd-current@FreeBSD.ORG Thu Mar 1 17:59:22 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3533C106566C for ; Thu, 1 Mar 2012 17:59:22 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from glenbarber.us (onyx.glenbarber.us [199.48.134.227]) by mx1.freebsd.org (Postfix) with SMTP id D7F648FC08 for ; Thu, 1 Mar 2012 17:59:21 +0000 (UTC) Received: (qmail 17667 invoked by uid 0); 1 Mar 2012 12:31:19 -0500 Received: from unknown (HELO glenbarber.us) (75.146.225.65) by 0 with SMTP; 1 Mar 2012 12:31:19 -0500 Date: Thu, 1 Mar 2012 12:31:17 -0500 From: Glen Barber To: Luigi Rizzo Message-ID: <20120301173117.GC1873@glenbarber.us> References: <20120301173819.GA31913@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120301173819.GA31913@onelab2.iet.unipi.it> X-Operating-System: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: current@freebsd.org Subject: Re: how to cross-build a single application ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2012 17:59:22 -0000 On Thu, Mar 01, 2012 at 06:38:19PM +0100, Luigi Rizzo wrote: > What is the way to properly cross-build a single program > (after having gone throught the 'toolchain' and possibly > even a full 'buildworld') > from the top-level directory of a FreeBSD source tree ? > > right now i do something like > > cd $SOURCE_ROOT > make MAKEOBJDIRPREFIX=/my_obj_tree TARGET=amd64 buildworld > > but i seem to remember that there is a more efficient way > when you want to rebuild only one program or one subtree. > I think i have seen this question being answered from time to time > but i can't find how now. > > any hints ? > There is this link from the wiki, which shows how to build/install/run emulators/wine on amd64: http://wiki.freebsd.org/Wine#Wine_on_FreeBSD.2BAC8-amd64 If there's an even more efficient way to do it, I'd love if it were documented somewhere. Glen