[asterisk-dev] Cross compiling zaptel

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Sep 7 01:57:18 CDT 2007


On Wed, Aug 22, 2007 at 11:31:17AM -0500, Russell Bryant wrote:
> Brian Capouch wrote:
> > I'm going to take Russell up on the offer he made Kristian wrt 
> > cross-building, even though I'm not Kristian and I'm not working on 
> > astlinux, and this is asterisk trunk, not zaptel :-)
> 
> No problem.  Let's get it fixed up!
> 
> > 1. The openWRT build system now whines about virtually all the 
> > individual ~/app, ~/res, etc. .c files, with the following message on 
> > the console as each is encountered:
> > 
> > <built-in>:0: note: someone does not honour COPTS correctly, passed 0 times
> 
> >From some quick googling, it looks like this build system passes in custom
> target CFLAGS in the COPTS variable.  I tweaked the Makefile in 1.4 and trunk to
> add the contents of COPTS to CFLAGS.  This should fix it.

What's the point in the COPTS variable?

Why not just use the standard autoconf CFLAGS variable? This is done at
configure time and hence the makefile is not needlessly complicated.

What do you need COPTS for that cannot be odne trivially with a simple
./configure command-line ?

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list