lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, 5 Mar 2010 00:33:04 +0000
Rob Kendrick <rjek@rjek.com> wrote:

> On Thu, 04 Mar 2010 16:18:40 -0800
> Rory Toma <rory@ooma.com> wrote:
> 
> > >
> > > On Thu, 04 Mar 2010 14:35:45 -0800
> > > Rory Toma<rory@ooma.com>  wrote:
> > >
> > >    
> > >> I notice that every package that I cross compile, I have to, at a
> > >> minimum, rewrite the configure scripts and often the Makefiles.
> > >> What is the standard lua way of building for cross-compile?
> > >>      
> > > /path/to/your/cross-compiler -Isrc etc/all.c -o lua
> >
> > It's not that, it's that all the support scripts seem to be
> > standardized in a way which
> > 
> > 1) wants to call the local lua on the build machine to get
> > installation info 2) Makefiles often have things like CFLAGS and CC
> > hardcoded 3) There is usually no support for things like $(DESTDIR)
> 
> Then it's time to file bugs with patches, alas.

I'll so second this.

Set up your CC, CFLAGS, HOSTCC etc, and if they are ignored it's a
bug.

	Regards,
	nash