2002-09-03 Neal H. Walfield <neal@cs.uml.edu>
authorNeal Walfield <neal@walfield.org>
Wed, 4 Sep 2002 03:16:09 +0000 (03:16 +0000)
committerNeal Walfield <neal@walfield.org>
Wed, 4 Sep 2002 03:16:09 +0000 (03:16 +0000)
* Makefile.am (inittests.stamp): Construct an LD_LIBRARY_PATH from
LDFLAGS.

tests/ChangeLog
tests/Makefile.am

index 627d022..bfada39 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-03  Neal H. Walfield  <neal@cs.uml.edu>
+
+       * Makefile.am (inittests.stamp): Construct an LD_LIBRARY_PATH from
+       LDFLAGS.
+
 2002-08-09  Werner Koch  <wk@gnupg.org>
 
        * asschk.c (cmd_getenv): New.
index 442d864..960b14b 100644 (file)
@@ -53,6 +53,20 @@ clean-local:
        srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests --clean
 
 inittests.stamp: inittests
-       srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
+       LD_LIBRARY_PATH=$$(seen=0; \
+                           for i in $(LDFLAGS); \
+                           do \
+                             if echo "$$i" | egrep '^-L' >/dev/null 2>&1; \
+                             then \
+                               if test $$seen = 0; \
+                               then \
+                                 seen=1; \
+                               else \
+                                 echo -n ":"; \
+                               fi; \
+                               echo -n $${i} | sed 's/^-L//'; \
+                             fi; \
+                           done) \
+          srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
        echo timestamp >./inittests.stamp