-Itop_builddir/lib too
authorKarl Berry <karl@freefriends.org>
Sat, 30 Jul 2005 13:47:19 +0000 (13:47 +0000)
committerKarl Berry <karl@freefriends.org>
Sat, 30 Jul 2005 13:47:19 +0000 (13:47 +0000)
doc/ChangeLog
doc/gnulib.texi

index 6b63c70f58f2c5f51cde364532990d27736a97e7..4cb570fd4c69d8e0d241fab11b747c051a4dcd87 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-30  Karl Berry  <karl@gnu.org>
+
+       * gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
+       Report from Ben Pfaff, regarding getopt.
+
 2005-07-24  Bruno Haible  <bruno@clisp.org>
 
        * visibility.texi: New file.
index cc826994def4ad7089ee821996156b217dbd45b1..b3b09dc285ddf373c9989d70921e1384a18e5568 100644 (file)
@@ -1,5 +1,5 @@
 \input texinfo   @c -*-texinfo-*-
-@comment $Id: gnulib.texi,v 1.14 2005-07-27 00:16:01 karl Exp $
+@comment $Id: gnulib.texi,v 1.15 2005-07-30 13:47:19 karl Exp $
 @comment %**start of header
 @setfilename gnulib.info
 @settitle GNU Gnulib
@@ -7,7 +7,7 @@
 @syncodeindex pg cp
 @comment %**end of header
 
-@set UPDATED $Date: 2005-07-27 00:16:01 $
+@set UPDATED $Date: 2005-07-30 13:47:19 $
 
 @copying
 This manual is for GNU Gnulib (updated @value{UPDATED}),
@@ -523,12 +523,14 @@ SUBDIRS += gl
 @end example
 
 Finally, you have to add compiler and linker flags in the appropriate
-source directories, so that you can make use
-of the gnulib library.  For example:
+source directories, so that you can make use of the gnulib library.
+Since some modules (@samp{getopt}, for example) may copy files into
+the build directory, @file{top_builddir/lib} is needed as well
+as @file{top_srcdir/lib}.  For example:
 
 @example
 ...
-AM_CPPFLAGS = -I$(top_srcdir)/lib
+AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_builddir)/lib
 ...
 LIBADD = lib/libgnu.a
 ...