automake
[Top][All Lists]
Advanced

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

Re: CPPFLAGS for LIBOBJS


From: Russ Allbery
Subject: Re: CPPFLAGS for LIBOBJS
Date: Wed, 23 Apr 2008 13:49:44 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Ralf Wildenhues <address@hidden> writes:
> Hi Russ,
> * Russ Allbery wrote on Wed, Apr 23, 2008 at 02:16:34AM CEST:

>>> If I add:
>>>
>>> portable_libportable_a_CPPFLAGS = $(KRB5_LDFLAGS) $(KAFS_LDFLAGS)

>> Er, obviously that should be KRB5_CPPFLAGS and KAFS_CPPFLAGS.  Sorry
>> about the confusion.

> Should it also be libportable_a_CPPFLAGS instead of portable_&?

I always use non-recursive make.

>>> it has no effect, which after thinking about it for a moment makes
>>> some sense.
>
> Unless the above was just a typo, I'm not sure I follow.  The following
> test passes with current git Automake as well as with 1.9.6.

The problem is specific to LIBOBJS, which your test doesn't use.  I need
to define additional CPPFLAGS to use when building the objects included in
LIBOBJS.

Specifying CPPFLAGS for regular libraries of course works, but the build
rules for LIBOBJS are apparently constructed separately and don't pick up
flags from the library in which they're included.

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]