bug-gnulib
[Top][All Lists]
Advanced

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

Re: first draft of "relocatable" module


From: Ralf Wildenhues
Subject: Re: first draft of "relocatable" module
Date: Wed, 28 Feb 2007 06:52:36 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Ben Pfaff wrote on Mon, Feb 26, 2007 at 05:56:54AM CET:
> Ralf Wildenhues <address@hidden> writes:
> > * Ben Pfaff wrote on Mon, Feb 26, 2007 at 05:41:15AM CET:
> >> 
> >> The issue is foo_CFLAGS and foo_LDFLAGS need to refer back to the
> >> directory in which foo is installed.  Thus, if foo is in
> >> bin_PROGRAMS then the following is correct:
> >> 
> >>       foo_CFLAGS = -DINSTALLDIR=\"$(bindir)\"

FWIW, foo_CPPFLAGS would be more appropriate for -D.

[...]
> >> but if foo is in libexecdir_PROGRAMS then the following is needed
> >> instead:
> >
> > Ah, ok, thanks for the explanation.  Yes, this may be best solved from
> > within Automake.  Not sure if I have a chance to look at it soon though.
> 
> Do you have a suggestion for a reasonable syntax to request it?
> I am willing to do some implementation work.

Hmm, at first sight, not really.  It would be helpful if this request
could even be formulated coherently from an Automake POV.  I think it's
a bummer if the per-target *_CPPFLAGS are always used and thus cause the
need for individual rules for each object file, bloating the resulting
Makefile.  Most packages put all their PROGRAMS in bindir only, so in
that case just one global flag would suffice.

Anyway sending a mail to the Automake list even as a reminder about this
is a good idea.

Cheers,
Ralf




reply via email to

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