Ralf Wildenhues wrote:
> > >> 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.
Yes, right. That's also how it's used in gettext. I'm applying this:
2007-03-01 Bruno Haible <[EMAIL PROTECTED]>
* doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
foo_CFLAGS.
Reported by Ralf Wildenhues.
--- doc/relocatable-maint.texi 1 Mar 2007 02:08:18 -0000 1.1
+++ doc/relocatable-maint.texi 2 Mar 2007 01:52:38 -0000
@@ -116,7 +116,7 @@
installed in, say, @file{$(bindir)}, you add:
@example
-foo_CFLAGS = -DINSTALLDIR=\"$(bindir)\"
+foo_CPPFLAGS = -DINSTALLDIR=\"$(bindir)\"
if RELOCATABLE_VIA_LD
foo_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)`
endif