> 2025-09-15  Bruno Haible  <[email protected]>
> 
>       pagealign_alloc tests: Fix link error.
>       * modules/pagealign_alloc-tests (Makefile.am): Link test-pagealign_alloc
>       with $(LIBINTL).

I get a similar link error on mingw:

x86_64-w64-mingw32-gcc -Wno-error -Wno-error -g -O2  -L/usr/local/mingw64/lib 
-o bench-pagealign_alloc.exe bench_pagealign_alloc-bench-pagealign_alloc.o 
libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a  
../gllib/libgnu.a(xalloc-die.o): In function `xalloc_die':
/home/bruno/testdir-all-for-mingw/build-mingw64/gllib/../../gllib/xalloc-die.c:34:
 undefined reference to `libintl_dgettext'
../gllib/libgnu.a(error.o): In function `print_errno_message':
/home/bruno/testdir-all-for-mingw/build-mingw64/gllib/../../gllib/error.c:208: 
undefined reference to `libintl_dgettext'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:19410: bench-pagealign_alloc.exe] Error 1

This patch should fix it.


2025-09-16  Bruno Haible  <[email protected]>

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

diff --git a/modules/pagealign_alloc-tests b/modules/pagealign_alloc-tests
index dd325c45bb..d280b242fe 100644
--- a/modules/pagealign_alloc-tests
+++ b/modules/pagealign_alloc-tests
@@ -18,3 +18,4 @@ test_pagealign_alloc_LDADD = $(LDADD) @LIBINTL@
 
 noinst_PROGRAMS += bench-pagealign_alloc
 bench_pagealign_alloc_CPPFLAGS = $(AM_CPPFLAGS) -DNDEBUG
+bench_pagealign_alloc_LDADD = $(LDADD) $(LIBINTL)




Reply via email to