From owner-freebsd-current@FreeBSD.ORG Thu Mar 1 17:49:52 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 315BE1065673 for ; Thu, 1 Mar 2012 17:49:52 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id CDECD8FC18 for ; Thu, 1 Mar 2012 17:49:51 +0000 (UTC) Received: by vcbfl15 with SMTP id fl15so876385vcb.13 for ; Thu, 01 Mar 2012 09:49:51 -0800 (PST) Received-SPF: pass (google.com: domain of kabaev@gmail.com designates 10.52.19.196 as permitted sender) client-ip=10.52.19.196; Authentication-Results: mr.google.com; spf=pass (google.com: domain of kabaev@gmail.com designates 10.52.19.196 as permitted sender) smtp.mail=kabaev@gmail.com; dkim=pass header.i=kabaev@gmail.com Received: from mr.google.com ([10.52.19.196]) by 10.52.19.196 with SMTP id h4mr9699063vde.91.1330624191230 (num_hops = 1); Thu, 01 Mar 2012 09:49:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=+681QiSwNiSYmKz+WEnbAPfjlVJAga8EE7ZyWAH00Ao=; b=Al88hXkWaGCaAIVMmqgwLX2yA7PBzYhMojBG/voUkZmXaKQgXcGIXJ79/d16rjs5oC tNsbd0L4bH0ddJxqveGws79+bdskjVVoxiUoN87301Ww80sZEzHSW9oQyiAaAib4txuR wChe1AnJhylfZR3jov8KVCtybj8j034d3eNj4= Received: by 10.52.19.196 with SMTP id h4mr8052574vde.91.1330622660674; Thu, 01 Mar 2012 09:24:20 -0800 (PST) Received: from kan.dyndns.org (c-24-63-226-98.hsd1.ma.comcast.net. [24.63.226.98]) by mx.google.com with ESMTPS id a19sm4035791vdh.12.2012.03.01.09.24.18 (version=SSLv3 cipher=OTHER); Thu, 01 Mar 2012 09:24:19 -0800 (PST) Date: Thu, 1 Mar 2012 12:24:13 -0500 From: Alexander Kabaev To: Luigi Rizzo Message-ID: <20120301122413.02413f49@kan.dyndns.org> In-Reply-To: <20120301173819.GA31913@onelab2.iet.unipi.it> References: <20120301173819.GA31913@onelab2.iet.unipi.it> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/abvmodQehhgW=bL9uKCf7yA"; protocol="application/pgp-signature" 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:49:52 -0000 --Sig_/abvmodQehhgW=bL9uKCf7yA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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')=20 > from the top-level directory of a FreeBSD source tree ? >=20 > right now i do something like >=20 > cd $SOURCE_ROOT > make MAKEOBJDIRPREFIX=3D/my_obj_tree TARGET=3Damd64 buildworld >=20 > 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. >=20 > any hints ? >=20 > cheers > luigi >=20 Something like this should work: cd src/ make buildenv TARGET=3D... cd usr.bin/blah make --=20 Alexander Kabaev --Sig_/abvmodQehhgW=bL9uKCf7yA Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iD8DBQFPT7DBQ6z1jMm+XZYRAm8SAJ9WrYHAUBtBQEFVjh2cKgGAL49uUACfYdBf zSrFXSujif7YTFTaLTO9IFw= =Zkic -----END PGP SIGNATURE----- --Sig_/abvmodQehhgW=bL9uKCf7yA--