Re: how to cross-build a single application ?

2012-03-01 Thread Gleb Kurtsou
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 possi

Re: how to cross-build a single application ?

2012-03-01 Thread Glen Barber
On Thu, Mar 01, 2012 at 06:38:19PM +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 lik

Re: how to cross-build a single application ?

2012-03-01 Thread Alexander Kabaev
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 > >

Re: how to cross-build a single application ?

2012-03-01 Thread Luigi Rizzo
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-le

how to cross-build a single application ?

2012-03-01 Thread Luigi Rizzo
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 TAR

Re: How to cross build

1999-07-06 Thread John Birrell
Warner Losh wrote: > You'll need to do this for all binutils as well. I already build binutils with multi-architecture support. On alpha, I have "CROSS_TOOLS= i386 m68k" in my /etc/make.conf and at the end of a make world I have one ld that knows all the formats. Only gas is a special case, so I

Re: How to cross build

1999-07-06 Thread Warner Losh
In message <[EMAIL PROTECTED]> John Birrell writes: : I was aiming to build a set of cross tools as (an optional) part of the : i386 build like binutils. When building the cross-compiler, defining : CROSS_COMPILE and setting the execution path will avoid the native : compiler. Then in the mk files

Re: How to cross build

1999-07-06 Thread John Birrell
Warner Losh wrote: > > OK. Per many requests from the community, I've committed my cross > compilation changes. Thanks. > To build you just say > make buildworld TARGET=hpcmips TARGET_ARCH=mipsel > or > make buildworld TARGET=m68k TARGET_ARCH=m68k > Right now you must specify both

How to cross build

1999-07-06 Thread Warner Losh
OK. Per many requests from the community, I've committed my cross compilation changes. To build you just say make buildworld TARGET=hpcmips TARGET_ARCH=mipsel or make buildworld TARGET=m68k TARGET_ARCH=m68k Right now you must specify both TARGET and TARGET_ARCH. You will want