]> Savannah Git Hosting - gnulib.git/commitdiff
mtx tests: Fix a possible link error.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Jun 2024 10:43:06 +0000 (12:43 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Jun 2024 23:21:00 +0000 (01:21 +0200)
* modules/mtx-tests (Files): Add m4/semaphore.m4.
(configure.ac): Require gl_SEMAPHORE.
(Makefile.am): Link test-mtx with @LIB_SEMAPHORE@.

ChangeLog
modules/mtx-tests

index 0380cf7bcb1bb6f7ea731e5b648e574a58ed75eb..b20d8742910c43cc1cceb988476de0833d5f3ea2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-06-03  Bruno Haible  <bruno@clisp.org>
+
+       mtx tests: Fix a possible link error.
+       * modules/mtx-tests (Files): Add m4/semaphore.m4.
+       (configure.ac): Require gl_SEMAPHORE.
+       (Makefile.am): Link test-mtx with @LIB_SEMAPHORE@.
+
 2024-06-03  Bruno Haible  <bruno@clisp.org>
 
        pthread-mutex, pthread-rwlock: Fix a compilation error.
index 063a56d67f7d76b069e09a522ccfb41236c0d284..323d392087c03736c02cf24a7c9413503d44a852 100644 (file)
@@ -2,6 +2,7 @@ Files:
 tests/test-mtx.c
 tests/atomic-int-isoc.h
 tests/macros.h
+m4/semaphore.m4
 
 Depends-on:
 thrd
@@ -12,8 +13,9 @@ random
 configure.ac:
 AC_CHECK_HEADERS_ONCE([semaphore.h])
 AC_CHECK_DECLS_ONCE([alarm])
+AC_REQUIRE([gl_SEMAPHORE])
 
 Makefile.am:
 TESTS += test-mtx
 check_PROGRAMS += test-mtx
-test_mtx_LDADD = $(LDADD) @LIBSTDTHREAD@ @LIBTHREAD@
+test_mtx_LDADD = $(LDADD) @LIBSTDTHREAD@ @LIBTHREAD@ @LIB_SEMAPHORE@