diff --git a/ChangeLog b/ChangeLog
index 37cddf4268..d52e6a7b0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+Thu Feb 28 18:04:59 CET 2008 Jim Meyering
+
+ Avoid link errors with "configure --disable-shared".
+ * src/Makefile.am: Create a convenience library, libvirt_test.la,
+ and don't restrict access to *its* symbols.
+ * tests/Makefile.am (LDADDS): Add ../src/libvirt_test.la, so that
+ "configure --disable-shared" no longer provokes link errors.
+ (LIBVIRT): Remove definition.
+ (LDADDS): Remove use.
+ ($(LIBVIRT)): Remove rule.
+ (LDADDS): Use the new convenience library instead.
+ (CLEANFILES): Define.
+ * docs/examples/index.py (dump_Makefile): Append $(COVERAGE_LDFLAGS),
+ to the LDADDS definition, to avoid link error with the combination of
+ --enable-test-coverage and --disable-shared.
+ * docs/examples/Makefile.am: Regenerate.
+ * docs/examples/index.html: Likewise.
+ * qemud/Makefile.am (libvirtd_LDFLAGS): Append $(COVERAGE_LDFLAGS).
+ * src/libvirt_sym.version: Remove some SP-before-TAB.
+
Thu Feb 28 12:16:39 CET 2008 Daniel Veillard
* src/qemu_conf.c: applied patch from Cole Robinson to use virErrorMsg
diff --git a/docs/examples/Makefile.am b/docs/examples/Makefile.am
index 9da4e219e0..d8e4868801 100644
--- a/docs/examples/Makefile.am
+++ b/docs/examples/Makefile.am
@@ -3,7 +3,7 @@
SUBDIRS=python
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include
DEPS = $(top_builddir)/src/libvirt.la
-LDADDS = @STATIC_BINARIES@ $(WARN_CFLAGS) $(top_builddir)/src/libvirt.la
+LDADDS = @STATIC_BINARIES@ $(WARN_CFLAGS) $(top_builddir)/src/libvirt.la $(COVERAGE_LDFLAGS)
rebuild: examples.xml index.html
diff --git a/docs/examples/index.html b/docs/examples/index.html
index ceff46a43f..793a391079 100644
--- a/docs/examples/index.html
+++ b/docs/examples/index.html
@@ -4,4 +4,4 @@
of the example:
Getting the compilation options and libraries dependancies needed
to generate binaries from the examples is best done on Linux/Unix by using
the pkg-config data which should have been installed as part of make
-install step or when installing the libvirt development package:
gcc -o example example.c `pkg-config libvirt --libs`
Informations Examples
info1.c: Extract informations about Xen domain 0
Demonstrate the basic use of the library to connect to the hypervisor and extract domain informations.
Uses:
Usage:
info1
Author: Daniel Veillard
Scheduling Examples
suspend.c: Suspend a domain and then resume its execution
Demonstrate the basic use of the library to suspend and resume a domain. If no id is given on the command line this script will suspend and resume the first domain found which is not Domain 0.
Uses:
Usage:
suspend [id]
Author: Daniel Veillard