diff options
author | Hilko Bengen <bengen@hilluzination.de> | 2011-12-01 22:06:30 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-12-01 23:40:58 +0000 |
commit | 1a35ca59088e572c11633e85524bb282cb436186 (patch) | |
tree | db36e1cd978c328ebf21e71fdd543f37b5d19fe9 | |
parent | f23352aefd96dc873111e5e5d55ea22b30c3e0ad (diff) | |
download | libguestfs-1a35ca59088e572c11633e85524bb282cb436186.tar.gz libguestfs-1a35ca59088e572c11633e85524bb282cb436186.tar.xz libguestfs-1a35ca59088e572c11633e85524bb282cb436186.zip |
libguestfs: Added gnulib includes from builddir, as suggested by the Gnulib documentation
Since some modules (`getopt', for example) may copy files
into the build directory, `top_builddir/lib' is needed as well as
`top_srcdir/lib'. -- GNU Gnulib manual, section 2.2 Initial import
-rw-r--r-- | capitests/Makefile.am | 1 | ||||
-rw-r--r-- | daemon/Makefile.am | 2 | ||||
-rw-r--r-- | src/Makefile.am | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/capitests/Makefile.am b/capitests/Makefile.am index cb9188ec..d32b7fc3 100644 --- a/capitests/Makefile.am +++ b/capitests/Makefile.am @@ -129,6 +129,7 @@ test_debug_to_file_SOURCES = test-debug-to-file.c test_debug_to_file_CFLAGS = \ -I$(top_srcdir)/src -I$(top_builddir)/src \ -I$(top_srcdir)/gnulib/lib \ + -I$(top_builddir)/gnulib/lib \ $(WARN_CFLAGS) $(WERROR_CFLAGS) test_debug_to_file_LDADD = \ $(top_builddir)/src/libguestfs.la \ diff --git a/daemon/Makefile.am b/daemon/Makefile.am index c4a30bcd..71d6a637 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -176,7 +176,7 @@ guestfsd_LDADD = \ $(LIBINTL) \ $(SERVENT_LIB) -guestfsd_CPPFLAGS = -I$(top_srcdir)/gnulib/lib +guestfsd_CPPFLAGS = -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib guestfsd_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) .PHONY: force diff --git a/src/Makefile.am b/src/Makefile.am index 761fcb6e..82a40045 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -165,7 +165,7 @@ libguestfs_la_CFLAGS = \ $(LIBVIRT_CFLAGS) $(LIBXML2_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) -libguestfs_la_CPPFLAGS = -I$(top_srcdir)/gnulib/lib +libguestfs_la_CPPFLAGS = -I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib if HAVE_RPCGEN guestfs_protocol.c: guestfs_protocol.x |