Incompatibility w/ Automake

Daniel Macks dmacks at netspace.org
Sun Mar 23 16:11:19 PDT 2008


On Sun, Mar 23, 2008 at 08:17:20PM +0100, Tollef Fog Heen wrote:
> * Stepan Kasal 
> 
> | I'd like to discuss the following problem:
> | 
> | When using Automake, the -I and -D options should go to *_CPPFLAGS,
> | while only the rest should go to *_CFLAGS.
> | Likewise -l and -L options go to *_LDADD or *_LIBADD, the rest to
> | *_LDFLAGS.
> 
> In practice, not distinguishing between CPPFLAGS and CFLAGS doesn't
> cause a problem, so I'd recommend just using CFLAGS.  Yes, it might be
> unesthetical, but it'll work just fine.  (And use CXXFLAGS if you're
> dealing with C++.)

Is there any "the rest" that would go to *_CFLAGS? See response to my
'Meaning of "cflags"' recently on this mailing list. Having to
remember whether one has C or C++ and passing each specifically is
easily avoided by use of CPPFLAGS because it applies to both
languages' compilers.

dan

-- 
Daniel Macks
dmacks at netspace.org
http://www.netspace.org/~dmacks



More information about the pkg-config mailing list