Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Mar 2012 00:28:27 +0200
From:      Gleb Kurtsou <gleb.kurtsou@gmail.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        current@freebsd.org
Subject:   Re: how to cross-build a single application ?
Message-ID:  <20120301222827.GA73023@reks>
In-Reply-To: <20120301175212.GA32051@onelab2.iet.unipi.it>
References:  <20120301173819.GA31913@onelab2.iet.unipi.it> <20120301122413.02413f49@kan.dyndns.org> <20120301175212.GA32051@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <rizzo@iet.unipi.it> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120301222827.GA73023>