From: Bruno Haible Date: Tue, 17 Nov 2020 22:24:12 +0000 (+0100) Subject: Fix link errors on AIX. X-Git-Tag: v1.0~3503 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c1d6485911a260331de7911c7ad81af9c839671d;p=gnulib.git Fix link errors on AIX. * modules/clean-temp (Link): Link with $(LIBTHREAD). * modules/getumask (Link): Link with $(LIBTHREAD). * modules/getumask-tests (Makefile.am): Link test-getumask with $(LIBTHREAD). * modules/supersede (Link): Link with $(LIBTHREAD). * modules/supersede-tests (Makefile.am): Link test-supersede with $(LIBTHREAD). * modules/fatal-signal (Link): New section. * modules/execute (Link): New section. * modules/csharpexec (Link): Link with $(LIBTHREAD). * modules/javaexec (Link): Link with $(LIBTHREAD). * modules/spawn-pipe (Link): New section. * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with $(LIBTHREAD). * modules/csharpcomp (Link): Link with $(LIBTHREAD). * modules/javacomp (Link): Link with $(LIBTHREAD). * modules/javaversion (Link): Link with $(LIBTHREAD). * modules/pipe-filter-gi (Link): New section. * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1, test-pipe-filter-gi2-main with $(LIBTHREAD). * modules/pipe-filter-ii (Link): New section. * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1, test-pipe-filter-ii2-main with $(LIBTHREAD). * modules/term-style-control (Link): New section. * modules/term-style-control-tests (Makefile.am): Link test-term-style-control-hello, test-term-style-control-yes with $(LIBTHREAD). * modules/wait-process (Link): New section. * modules/nonblocking-pipe-tests (Makefile.am): Link test-nonblocking-pipe-main with $(LIBTHREAD). * modules/nonblocking-socket-tests (Makefile.am): Link test-nonblocking-socket-main with $(LIBTHREAD). --- diff --git a/ChangeLog b/ChangeLog index c8f4ffaac0..5f14b87ea0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,39 @@ +2020-11-17 Bruno Haible + + Fix link errors on AIX. + * modules/clean-temp (Link): Link with $(LIBTHREAD). + * modules/getumask (Link): Link with $(LIBTHREAD). + * modules/getumask-tests (Makefile.am): Link test-getumask with + $(LIBTHREAD). + * modules/supersede (Link): Link with $(LIBTHREAD). + * modules/supersede-tests (Makefile.am): Link test-supersede with + $(LIBTHREAD). + * modules/fatal-signal (Link): New section. + * modules/execute (Link): New section. + * modules/csharpexec (Link): Link with $(LIBTHREAD). + * modules/javaexec (Link): Link with $(LIBTHREAD). + * modules/spawn-pipe (Link): New section. + * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with + $(LIBTHREAD). + * modules/csharpcomp (Link): Link with $(LIBTHREAD). + * modules/javacomp (Link): Link with $(LIBTHREAD). + * modules/javaversion (Link): Link with $(LIBTHREAD). + * modules/pipe-filter-gi (Link): New section. + * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1, + test-pipe-filter-gi2-main with $(LIBTHREAD). + * modules/pipe-filter-ii (Link): New section. + * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1, + test-pipe-filter-ii2-main with $(LIBTHREAD). + * modules/term-style-control (Link): New section. + * modules/term-style-control-tests (Makefile.am): Link + test-term-style-control-hello, test-term-style-control-yes with + $(LIBTHREAD). + * modules/wait-process (Link): New section. + * modules/nonblocking-pipe-tests (Makefile.am): Link + test-nonblocking-pipe-main with $(LIBTHREAD). + * modules/nonblocking-socket-tests (Makefile.am): Link + test-nonblocking-socket-main with $(LIBTHREAD). + 2020-11-16 Bruno Haible Fix link errors on platforms with libunistring. diff --git a/modules/clean-temp b/modules/clean-temp index 2794b93f75..8551ce5f69 100644 --- a/modules/clean-temp +++ b/modules/clean-temp @@ -38,6 +38,7 @@ Include: Link: $(LIB_GETRANDOM) +$(LIBTHREAD) License: GPL diff --git a/modules/csharpcomp b/modules/csharpcomp index 62163f6a6c..a880a12d4f 100644 --- a/modules/csharpcomp +++ b/modules/csharpcomp @@ -29,6 +29,7 @@ Include: Link: $(LIB_MBRTOWC) +$(LIBTHREAD) License: GPL diff --git a/modules/csharpexec b/modules/csharpexec index 714e0b9d3c..853ec0b2c1 100644 --- a/modules/csharpexec +++ b/modules/csharpexec @@ -29,6 +29,7 @@ Include: Link: $(LIB_MBRTOWC) +$(LIBTHREAD) License: GPL diff --git a/modules/execute b/modules/execute index caf7c8438d..857a1883dc 100644 --- a/modules/execute +++ b/modules/execute @@ -39,6 +39,9 @@ lib_SOURCES += execute.h execute.c w32spawn.h Include: "execute.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/fatal-signal b/modules/fatal-signal index 6c49f2b60f..c56956c575 100644 --- a/modules/fatal-signal +++ b/modules/fatal-signal @@ -27,6 +27,9 @@ lib_SOURCES += fatal-signal.h fatal-signal.c Include: "fatal-signal.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/getumask b/modules/getumask index 61d71d0b3c..0f21808711 100644 --- a/modules/getumask +++ b/modules/getumask @@ -29,6 +29,7 @@ Include: Link: $(LIB_GETRANDOM) $(LIB_CLOCK_GETTIME) +$(LIBTHREAD) License: GPL diff --git a/modules/getumask-tests b/modules/getumask-tests index 29b91c7027..0f617dab5b 100644 --- a/modules/getumask-tests +++ b/modules/getumask-tests @@ -10,4 +10,4 @@ configure.ac: Makefile.am: TESTS += test-getumask check_PROGRAMS += test-getumask -test_getumask_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM) $(LIBINTL) +test_getumask_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM) $(LIBINTL) $(LIBTHREAD) diff --git a/modules/javacomp b/modules/javacomp index 5f8f60f55d..838aa2b633 100644 --- a/modules/javacomp +++ b/modules/javacomp @@ -44,6 +44,7 @@ Include: Link: $(LIB_MBRTOWC) $(LIB_GETRANDOM) +$(LIBTHREAD) License: GPL diff --git a/modules/javaexec b/modules/javaexec index 773093e81d..8322a4842b 100644 --- a/modules/javaexec +++ b/modules/javaexec @@ -30,6 +30,7 @@ Include: Link: $(LIB_MBRTOWC) +$(LIBTHREAD) License: GPL diff --git a/modules/javaversion b/modules/javaversion index d1e426c93a..ebec3eafb4 100644 --- a/modules/javaversion +++ b/modules/javaversion @@ -27,6 +27,7 @@ Include: Link: $(LIB_MBRTOWC) +$(LIBTHREAD) License: GPL diff --git a/modules/nonblocking-pipe-tests b/modules/nonblocking-pipe-tests index fa3b771f77..93ed45f929 100644 --- a/modules/nonblocking-pipe-tests +++ b/modules/nonblocking-pipe-tests @@ -32,4 +32,4 @@ configure.ac: Makefile.am: TESTS += test-nonblocking-pipe.sh check_PROGRAMS += test-nonblocking-pipe-main test-nonblocking-pipe-child -test_nonblocking_pipe_main_LDADD = $(LDADD) @LIBINTL@ +test_nonblocking_pipe_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/nonblocking-socket-tests b/modules/nonblocking-socket-tests index 2eb883ed33..e2545ea082 100644 --- a/modules/nonblocking-socket-tests +++ b/modules/nonblocking-socket-tests @@ -42,5 +42,5 @@ configure.ac: Makefile.am: TESTS += test-nonblocking-socket.sh check_PROGRAMS += test-nonblocking-socket-main test-nonblocking-socket-child -test_nonblocking_socket_main_LDADD = $(LDADD) $(LIBSOCKET) @LIBINTL@ +test_nonblocking_socket_main_LDADD = $(LDADD) $(LIBSOCKET) @LIBINTL@ $(LIBTHREAD) test_nonblocking_socket_child_LDADD = $(LDADD) $(LIBSOCKET) diff --git a/modules/pipe-filter-gi b/modules/pipe-filter-gi index bdf47ed9af..84e6cb3966 100644 --- a/modules/pipe-filter-gi +++ b/modules/pipe-filter-gi @@ -29,6 +29,9 @@ lib_SOURCES += pipe-filter-gi.c pipe-filter-aux.c Include: "pipe-filter.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/pipe-filter-gi-tests b/modules/pipe-filter-gi-tests index ef6ace3c66..6cca323eed 100644 --- a/modules/pipe-filter-gi-tests +++ b/modules/pipe-filter-gi-tests @@ -19,5 +19,5 @@ configure.ac: Makefile.am: TESTS += test-pipe-filter-gi1.sh test-pipe-filter-gi2.sh check_PROGRAMS += test-pipe-filter-gi1 test-pipe-filter-gi2-main test-pipe-filter-gi2-child -test_pipe_filter_gi1_LDADD = $(LDADD) @LIBINTL@ -test_pipe_filter_gi2_main_LDADD = $(LDADD) @LIBINTL@ +test_pipe_filter_gi1_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) +test_pipe_filter_gi2_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/pipe-filter-ii b/modules/pipe-filter-ii index f8822193fc..65a0a02547 100644 --- a/modules/pipe-filter-ii +++ b/modules/pipe-filter-ii @@ -29,6 +29,9 @@ lib_SOURCES += pipe-filter-ii.c pipe-filter-aux.c Include: "pipe-filter.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/pipe-filter-ii-tests b/modules/pipe-filter-ii-tests index 63d35abed9..48d4674b01 100644 --- a/modules/pipe-filter-ii-tests +++ b/modules/pipe-filter-ii-tests @@ -18,5 +18,5 @@ configure.ac: Makefile.am: TESTS += test-pipe-filter-ii1.sh test-pipe-filter-ii2.sh check_PROGRAMS += test-pipe-filter-ii1 test-pipe-filter-ii2-main test-pipe-filter-ii2-child -test_pipe_filter_ii1_LDADD = $(LDADD) @LIBINTL@ -test_pipe_filter_ii2_main_LDADD = $(LDADD) @LIBINTL@ +test_pipe_filter_ii1_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) +test_pipe_filter_ii2_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/spawn-pipe b/modules/spawn-pipe index 4868c57adf..ff19236cf9 100644 --- a/modules/spawn-pipe +++ b/modules/spawn-pipe @@ -45,6 +45,9 @@ lib_SOURCES += spawn-pipe.h spawn-pipe.c w32spawn.h Include: "spawn-pipe.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/spawn-pipe-tests b/modules/spawn-pipe-tests index f7831d5e4d..9a6c0bccd1 100644 --- a/modules/spawn-pipe-tests +++ b/modules/spawn-pipe-tests @@ -12,7 +12,7 @@ configure.ac: Makefile.am: TESTS += test-spawn-pipe.sh check_PROGRAMS += test-spawn-pipe-main test-spawn-pipe-child -test_spawn_pipe_main_LDADD = $(LDADD) @LIBINTL@ +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. diff --git a/modules/supersede b/modules/supersede index 38f52fa647..d15430229e 100644 --- a/modules/supersede +++ b/modules/supersede @@ -35,6 +35,7 @@ Include: Link: $(LIB_GETRANDOM) $(LIB_CLOCK_GETTIME) +$(LIBTHREAD) License: GPL diff --git a/modules/supersede-tests b/modules/supersede-tests index 75c886bff8..7224d2e31e 100644 --- a/modules/supersede-tests +++ b/modules/supersede-tests @@ -19,4 +19,4 @@ configure.ac: Makefile.am: TESTS += test-supersede check_PROGRAMS += test-supersede -test_supersede_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM) $(LIBINTL) +test_supersede_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM) $(LIBINTL) $(LIBTHREAD) diff --git a/modules/term-style-control b/modules/term-style-control index 0a2f935596..a6fdd5ba3e 100644 --- a/modules/term-style-control +++ b/modules/term-style-control @@ -24,6 +24,9 @@ lib_SOURCES += term-style-control.c Include: "term-style-control.h" +Link: +$(LIBTHREAD) + License: GPL diff --git a/modules/term-style-control-tests b/modules/term-style-control-tests index 908d9fe9de..921c42fadd 100644 --- a/modules/term-style-control-tests +++ b/modules/term-style-control-tests @@ -13,5 +13,5 @@ Makefile.am: TESTS += test-term-style-control-hello check_PROGRAMS += test-term-style-control-hello noinst_PROGRAMS += test-term-style-control-yes -test_term_style_control_hello_LDADD = $(LDADD) @LIBINTL@ -test_term_style_control_yes_LDADD = $(LDADD) @LIBINTL@ +test_term_style_control_hello_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) +test_term_style_control_yes_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD) diff --git a/modules/wait-process b/modules/wait-process index 71b363aab9..7ffe8322ce 100644 --- a/modules/wait-process +++ b/modules/wait-process @@ -28,6 +28,9 @@ lib_SOURCES += wait-process.h wait-process.c Include: "wait-process.h" +Link: +$(LIBTHREAD) + License: GPL