]> Savannah Git Hosting - gnulib.git/commitdiff
execute tests: Fix test failure when libtool is in use.
authorBruno Haible <bruno@clisp.org>
Wed, 25 Aug 2021 10:43:56 +0000 (12:43 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 25 Aug 2021 10:44:40 +0000 (12:44 +0200)
* modules/execute-tests (Makefile.am): Link test-execute-child without
using libtool.
* modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-child
without using libtool.
* modules/system-quote-tests (Makefile.am): Link test-system-quote-child
without using libtool.

ChangeLog
modules/execute-tests
modules/spawn-pipe-tests
modules/system-quote-tests

index e1f89f7ef44d2d471f5ceeecffa18acbff509a63..785fbc44b3d66b232dcf43e5fe56ef574e6c0f9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2021-08-25  Bruno Haible  <bruno@clisp.org>
+
+       execute tests: Fix test failure when libtool is in use.
+       * modules/execute-tests (Makefile.am): Link test-execute-child without
+       using libtool.
+       * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-child
+       without using libtool.
+       * modules/system-quote-tests (Makefile.am): Link test-system-quote-child
+       without using libtool.
+
 2021-08-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        dfa: prefer idx_t to ptrdiff_t for nonnegative
index c9421302bf1e31d477515a99ef034c7f7623b915..735f55c94d3b3001df7fadb9625ecb4e861b1593 100644 (file)
@@ -28,6 +28,7 @@ test_execute_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
 # The test-execute-child program must be a real executable, not a libtool
 # wrapper script, and should link against as few libraries as possible.
 # Therefore don't link it against any libraries other than -lc.
+test_execute_child_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
 test_execute_child_LDADD =
 
 TESTS += test-execute-script
index 5dbd28d74a5d5698c8dc1c3e02c362bf9e7018f2..a204031a612e3cd336ef6f6942265bdc0b8fe9c2 100644 (file)
@@ -22,6 +22,7 @@ test_spawn_pipe_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
 # The test-spawn-pipe-child program must be a real executable, not a libtool
 # wrapper script, and should link against as few libraries as possible.
 # Therefore don't link it against any libraries other than -lc.
+test_spawn_pipe_child_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
 test_spawn_pipe_child_LDADD =
 
 TESTS += test-spawn-pipe-script
index 4e2782a9a959ef6e14424555d48a74394b2bd43a..22f08389f6ecfbb301944105616eaf483729cb6f 100644 (file)
@@ -22,4 +22,5 @@ test_system_quote_main_LDADD = $(LDADD) @LIBINTL@ $(LIB_MBRTOWC)
 # The test-system-quote-child program must be a real executable, not a libtool
 # wrapper script, and should link against as few libraries as possible.
 # Therefore don't link it against any libraries other than -lc.
+test_system_quote_child_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
 test_system_quote_child_LDADD =