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: Bruno Haible
Subject: Re: first draft of "relocatable" module
Date: Fri, 2 Mar 2007 02:53:07 +0100
User-agent: KMail/1.5.4

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  <address@hidden>

        * 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





reply via email to

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