[Libvir] [PATCH] Avoid link errors with "configure --disable-shared".

Jim Meyering jim at meyering.net
Tue Jan 29 10:44:30 UTC 2008


I tried to build static binaries in the usual libtool way,
via "configure --disable-shared" and got some link errors
due to the tests linking only with shared-lib-related files.
Here's the fix:

	Avoid link errors with "configure --disable-shared".
	* tests/Makefile.am (LDADDS): Add ../src/libvirt.la, so that
	"configure --disable-shared" no longer provokes link errors.

---
 tests/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index dfd9e34..1b5f287 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -33,6 +33,7 @@ LDADDS = \
         $(SASL_LIBS) \
         $(WARN_CFLAGS) \
 	$(LIBVIRT) \
+	../src/libvirt.la \
 	../gnulib/lib/libgnu.la \
         $(COVERAGE_LDFLAGS)

--
1.5.4.rc5.1.g0fa73




More information about the libvir-list mailing list