From 8fb3a827a2635915a9baa3926e6be6fad7b9ab2d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 25 Aug 2021 12:43:56 +0200 Subject: [PATCH] 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. --- ChangeLog | 10 ++++++++++ modules/execute-tests | 1 + modules/spawn-pipe-tests | 1 + modules/system-quote-tests | 1 + 4 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index e1f89f7ef4..785fbc44b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2021-08-25 Bruno Haible + + 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 dfa: prefer idx_t to ptrdiff_t for nonnegative diff --git a/modules/execute-tests b/modules/execute-tests index c9421302bf..735f55c94d 100644 --- a/modules/execute-tests +++ b/modules/execute-tests @@ -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 diff --git a/modules/spawn-pipe-tests b/modules/spawn-pipe-tests index 5dbd28d74a..a204031a61 100644 --- a/modules/spawn-pipe-tests +++ b/modules/spawn-pipe-tests @@ -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 diff --git a/modules/system-quote-tests b/modules/system-quote-tests index 4e2782a9a9..22f08389f6 100644 --- a/modules/system-quote-tests +++ b/modules/system-quote-tests @@ -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 = -- 2.39.5