Allow circular dependency of separate libtests.a
authorEric Blake <ebb9@byu.net>
Wed, 12 Dec 2007 17:29:17 +0000 (10:29 -0700)
committerEric Blake <ebb9@byu.net>
Wed, 12 Dec 2007 17:30:08 +0000 (10:30 -0700)
* gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
when use_libtests.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
gnulib-tool

index a954c4c..1b1f43b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-12  Eric Blake  <ebb9@byu.net>
+
+       Allow circular dependency of separate libtests.a
+       * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
+       when use_libtests.
+
 2007-12-11  Eric Blake  <ebb9@byu.net>
 
        Fix bug with -0.0L in previous patch.
index eef55a7..1cdb902 100755 (executable)
@@ -1935,6 +1935,8 @@ func_emit_tests_Makefile_am ()
     echo "libtests_a_LIBADD = \$(${macro_prefix}tests_LIBOBJS)"
     echo "libtests_a_DEPENDENCIES = \$(${macro_prefix}tests_LIBOBJS)"
     echo "EXTRA_libtests_a_SOURCES ="
+    # The circular dependency in LDADD requires this.
+    echo "AM_LIBTOOLFLAGS = --preserve-dup-deps"
     echo
   fi
   cat allsnippets.tmp \