[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: cross compiling in general
- From: Brett Nash <nash@...>
- Date: Fri, 5 Mar 2010 11:01:32 +0800
On Fri, 5 Mar 2010 00:33:04 +0000
Rob Kendrick <firstname.lastname@example.org> wrote:
> On Thu, 04 Mar 2010 16:18:40 -0800
> Rory Toma <email@example.com> wrote:
> > >
> > > On Thu, 04 Mar 2010 14:35:45 -0800
> > > Rory Toma<firstname.lastname@example.org> 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