how to cross-build a single application ?

Alexander Kabaev kabaev at gmail.com
Thu Mar 1 17:49:52 UTC 2012


On Thu, 1 Mar 2012 18:38:19 +0100
Luigi Rizzo <rizzo at 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

-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120301/402e39b1/signature.pgp


More information about the freebsd-current mailing list