apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: mm.h and -I/usr/local/include problems
Date Wed, 07 Mar 2001 15:15:08 GMT
rbb@covalent.net wrote:
> 
> On Wed, 7 Mar 2001, jean-frederic clere wrote:
> 
> > Hi,
> >
> > On our machine (BS2000) there is a mm.h in /usr/local/include and it is
> > conflicting with the APR one in srclib/apr/shmem/unix/mm. We need to use
> > CFLAGS="-I/usr/local/include" for the configure because the basic
> > /usr/include only gives a very reduced set of includes.
> >
> > The problem is due to that APR puts the CFLAGS before its own includes.
> >
> > How should I solve this problem?
> 
> Just reverse the order of the -Is and CFLAGS.  If that works, let me know
> and I'll check it in.

That is easy, the CFLAGS comes from rules.mk, I have set:
+++
COMPILE      = $(CC) $(CPPFLAGS) $(CFLAGS)
+++
and it works that way.

>  In reality, we probably want any system headers to
> be used after any of our headers anyway, so we probably want to do this
> for all of the Makefiles.

That is what I would like to suggest...

> 
> If you could just test it, I'll make the change on my box, and commit with
> your name if it works.  For something like this, making a patch isn't
> really worth it IMHO.
> 
> Ryan
> 
> _______________________________________________________________________________
> Ryan Bloom                              rbb@apache.org
> 406 29th St.
> San Francisco, CA 94131
> -------------------------------------------------------------------------------

Mime
View raw message