Re: how to cross-build a single application ?

看板FB_current作者時間14年前 (2012/03/02 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
--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 <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')=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--
文章代碼(AID): #1FJxbXe9 (FB_current)
文章代碼(AID): #1FJxbXe9 (FB_current)