From owner-freebsd-current@FreeBSD.ORG Thu Mar 1 22:28:30 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F0510106566C for ; Thu, 1 Mar 2012 22:28:30 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 65E5D8FC13 for ; Thu, 1 Mar 2012 22:28:29 +0000 (UTC) Received: by lagv3 with SMTP id v3so1785327lag.13 for ; Thu, 01 Mar 2012 14:28:29 -0800 (PST) Received-SPF: pass (google.com: domain of gleb.kurtsou@gmail.com designates 10.112.31.232 as permitted sender) client-ip=10.112.31.232; Authentication-Results: mr.google.com; spf=pass (google.com: domain of gleb.kurtsou@gmail.com designates 10.112.31.232 as permitted sender) smtp.mail=gleb.kurtsou@gmail.com; dkim=pass header.i=gleb.kurtsou@gmail.com Received: from mr.google.com ([10.112.31.232]) by 10.112.31.232 with SMTP id d8mr3074973lbi.96.1330640909163 (num_hops = 1); Thu, 01 Mar 2012 14:28:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=XeGysyBMOz7afhqB1oL7NHcJAvI7y1ITOrw4zjpH8lU=; b=yH3SDQrRJRDxFfdaWTIOU1NED7QjboLRH29mGC/WvVS01EwWZaRxxOuBWR4kYgidxt MixQ2yzCsbkgFLfetpyPJPNkvtgWnnj+i2Ig2EYcqQlJ/9UHuvtHXantaDY4H6CbzHRD jmC3eUU1h6JEH+P++GFB2pSVU+kXuM1ETS34gvrpARJEBBpVvpm0L+HCJbOpZWbn5U4h YF/Yw12WXRxW42UnrEHdZ734IdLXWYAYiiug8QiKf6mFaFajzcOUzkoLiJOOSDD/ort4 iUYUzJ7bYuXcUhbXhrKMHG00/lzLwvGYpD/hYZ8jxNbaFeI7T5wFqolzUOM3X2OEQZm9 v+9Q== Received: by 10.112.31.232 with SMTP id d8mr2516838lbi.96.1330640909063; Thu, 01 Mar 2012 14:28:29 -0800 (PST) Received: from localhost ([78.157.92.5]) by mx.google.com with ESMTPS id o3sm4905477lbn.2.2012.03.01.14.28.28 (version=SSLv3 cipher=OTHER); Thu, 01 Mar 2012 14:28:28 -0800 (PST) Date: Fri, 2 Mar 2012 00:28:27 +0200 From: Gleb Kurtsou To: Luigi Rizzo Message-ID: <20120301222827.GA73023@reks> References: <20120301173819.GA31913@onelab2.iet.unipi.it> <20120301122413.02413f49@kan.dyndns.org> <20120301175212.GA32051@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120301175212.GA32051@onelab2.iet.unipi.it> 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 22:28:31 -0000 On (01/03/2012 18:52), Luigi Rizzo wrote: > On Thu, Mar 01, 2012 at 12:24:13PM -0500, Alexander Kabaev wrote: > > On Thu, 1 Mar 2012 18:38:19 +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 ? > > > > > > cheers > > > luigi > > > > > > > Something like this should work: > > > > cd src/ > > make buildenv TARGET=... > > cd usr.bin/blah > > make > > close: > > eval `make buildenvvars TARGET=... ` && cd usr.bin/blah && make There is tools/tinder.sh in src tree. > > thanks! > luigi > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"