[Libguestfs] [PATCH 6/9] test-charset-fidelity: use and link against gnulib

Pino Toscano ptoscano at redhat.com
Tue Nov 4 15:35:29 UTC 2014


It uses error() which is specific to GNU libc, but supplied by gnulib if
not available.
---
 tests/charsets/Makefile.am | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/charsets/Makefile.am b/tests/charsets/Makefile.am
index e71f76d..c1c6fdb 100644
--- a/tests/charsets/Makefile.am
+++ b/tests/charsets/Makefile.am
@@ -26,6 +26,7 @@ check_PROGRAMS = $(TESTS)
 
 test_charset_fidelity_SOURCES = test-charset-fidelity.c
 test_charset_fidelity_CPPFLAGS = \
+	-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
 	-I$(top_srcdir)/src -I$(top_builddir)/src
 test_charset_fidelity_CFLAGS = \
 	$(WARN_CFLAGS) $(WERROR_CFLAGS)
@@ -34,4 +35,5 @@ test_charset_fidelity_LDADD = \
 	$(top_builddir)/src/libguestfs.la \
 	$(LIBXML2_LIBS) \
 	$(LIBVIRT_LIBS) \
-	$(LTLIBINTL)
+	$(LTLIBINTL) \
+	$(top_builddir)/gnulib/lib/libgnu.la
-- 
1.9.3




More information about the Libguestfs mailing list