> 0003 adds the scalability unit test.

The CI reports a link error on some platforms, such as e.g. on NetBSD:

gcc -Wno-error -Wno-error -g -O2  -L/usr/pkg/lib -o test-pagealign_alloc 
test-pagealign_alloc.o libtests.a ../gllib/libgnu.a libtests.a 
../gllib/libgnu.a libtests.a  -lbacktrace -lm -lm -lm -lm -lm -lm  -lm -lm -lm 
-lm -lm
ld: ../gllib/libgnu.a(xalloc-die.o): in function `xalloc_die':
/home/runner/work/ci-testdir-check/ci-testdir-check/testdir-all/build-full/gllib/../../gllib/xalloc-die.c:34:
 undefined reference to `dgettext'
ld: ../gllib/libgnu.a(error.o): in function `print_errno_message':
/home/runner/work/ci-testdir-check/ci-testdir-check/testdir-all/build-full/gllib/../../gllib/error.c:208:
 undefined reference to `dgettext'
*** Error code 1

This patch should fix it.


2025-09-15  Bruno Haible  <br...@clisp.org>

        pagealign_alloc tests: Fix link error.
        * modules/pagealign_alloc-tests (Makefile.am): Link test-pagealign_alloc
        with $(LIBINTL).

diff --git a/modules/pagealign_alloc-tests b/modules/pagealign_alloc-tests
index 9e3bc64acc..dd325c45bb 100644
--- a/modules/pagealign_alloc-tests
+++ b/modules/pagealign_alloc-tests
@@ -14,6 +14,7 @@ AC_CHECK_DECLS_ONCE([alarm])
 Makefile.am:
 TESTS += test-pagealign_alloc
 check_PROGRAMS += test-pagealign_alloc
+test_pagealign_alloc_LDADD = $(LDADD) @LIBINTL@
 
 noinst_PROGRAMS += bench-pagealign_alloc
 bench_pagealign_alloc_CPPFLAGS = $(AM_CPPFLAGS) -DNDEBUG




Reply via email to