---
java/Makefile.am | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/java/Makefile.am b/java/Makefile.am
index 4bda32c..0ca7f7c 100644
--- a/java/Makefile.am
+++ b/java/Makefile.am
@@ -70,6 +70,11 @@ libguestfs_jni_la_SOURCES = \
com_redhat_et_libguestfs_GuestFS.h \
com_redhat_et_libguestfs_GuestFS.c
+.PHONY: force
+
+$(top_builddir)/src/libguestfs.la: force
+ make -C $(top_builddir)/src libguestfs.la
+
libguestfs_jni_la_LIBADD = $(top_builddir)/src/libguestfs.la
libguestfs_jni_la_LDFLAGS = -version-info $(JNI_VERSION_INFO)
libguestfs_jni_la_CFLAGS = -Wall -I$(top_srcdir)/src -I$(top_builddir)/src $(JNI_CFLAGS)
--
1.6.5.2