Subject: Re: packages and Cross compiling ?
To: None <current-users@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: current-users
Date: 01/02/2002 17:48:22
[ On Wednesday, January 2, 2002 at 17:50:23 (+0000), Matthias Scheler wrote: ]
> Subject: Re: packages and Cross compiling ?
>
> Cross compiling is not supported and probably never will be because there
> are too many problems in the build infra structure of the third party
> software. Many, many GNU "configure" programs e.g. compile and run small
> test programs which will fail in a cross building environment.

Note it is in fact the packages using GNU Autoconf (and more-so those
using GNU Automake as well) which are much better able to be cross-built
(at least so long as you also have a compatible cross-compiler available
for them to use).  Non-autoconf'ed packages are much less likely able to
be cross-built, except for the really simple ones where the build is
quite straight forward and with few or no host specific compile-time
configuration options.  To quote the manual:

	Autoconf scripts can support cross-compiling, if some care is
	taken in writing them.

-- 
								Greg A. Woods

+1 416 218-0098;  <gwoods@acm.org>;  <g.a.woods@ieee.org>;  <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>