Re: CPPFLAGS for LIBOBJS

2008-04-23 Thread NightStrike
On 4/23/08, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > * Russ Allbery wrote on Wed, Apr 23, 2008 at 10:51:11PM CEST: > > Ralf Wildenhues <[EMAIL PROTECTED]> writes: > > > > > Yes, they don't get per-target preprocessor or compile flags. That > > > doesn't work, because then they would have to be

Re: CPPFLAGS for LIBOBJS

2008-04-23 Thread Russ Allbery
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Yes. This is a useful TODO item. > > I think you should be able to work around it by using > AC_CONFIG_LIBOBJ_DIR and putting all LIBOJBS in a separate directory, > with separate Makefile.am, ensuring that they are built early enough, > and setting AM

Re: CPPFLAGS for LIBOBJS

2008-04-23 Thread Ralf Wildenhues
* Russ Allbery wrote on Wed, Apr 23, 2008 at 10:51:11PM CEST: > Ralf Wildenhues <[EMAIL PROTECTED]> writes: > > > Yes, they don't get per-target preprocessor or compile flags. That > > doesn't work, because then they would have to be renamed: $(LIBOBJS) > > may be added to several outputs, each

Re: CPPFLAGS for LIBOBJS

2008-04-23 Thread Russ Allbery
Ralf Wildenhues <[EMAIL PROTECTED]> writes: > Yes, they don't get per-target preprocessor or compile flags. That > doesn't work, because then they would have to be renamed: $(LIBOBJS) > may be added to several outputs, each with different per-target flags. This is why I want LIBOBJS_CPPFLAGS, w

Re: CPPFLAGS for LIBOBJS

2008-04-23 Thread Russ Allbery
Ralf Wildenhues <[EMAIL PROTECTED]> 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 confu

Re: CPPFLAGS for LIBOBJS

2008-04-23 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Wed, Apr 23, 2008 at 09:57:46PM CEST: > * 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. Sorr

Re: CPPFLAGS for LIBOBJS

2008-04-23 Thread Ralf Wildenhues
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

Re: CPPFLAGS for LIBOBJS

2008-04-22 Thread Russ Allbery
Russ Allbery <[EMAIL PROTECTED]> writes: > 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. > it has no effect, which after thinking about it for a moment makes some > sense.

CPPFLAGS for LIBOBJS

2008-04-22 Thread Russ Allbery
Today I ran into a need to set CPPFLAGS when building files for LIBOBJS and discovered that there doesn't appear to be any way to do it without setting CPPFLAGS globally. I have: portable_libportable_a_LIBADD = $(LIBOBJS) If I add: portable_libportable_a_CPPFLAGS = $(KRB5_LDFLAGS) $(KAFS_LDFLAG