[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
glob tests: Fix link error on mingw
From: |
Bruno Haible |
Subject: |
glob tests: Fix link error on mingw |
Date: |
Mon, 05 Sep 2022 00:03:11 +0200 |
On mingw, on a system where I have GNU gettext installed, I get
this link error:
i686-w64-mingw32-gcc -Wno-error -g -O2 -L/usr/local/mingw32/lib -o
test-glob.exe test-glob.o libtests.a ../gllib/libgnu.a libtests.a
../gllib/libgnu.a libtests.a
../gllib/libgnu.a(openat-die.o): In function `openat_save_fail':
/home/bruno/testdir-all/build-mingw32/gllib/../../gllib/openat-die.c:38:
undefined reference to `libintl_gettext'
../gllib/libgnu.a(openat-die.o): In function `openat_restore_fail':
/home/bruno/testdir-all/build-mingw32/gllib/../../gllib/openat-die.c:57:
undefined reference to `libintl_gettext'
../gllib/libgnu.a(error.o): In function `print_errno_message':
/home/bruno/testdir-all/build-mingw32/gllib/../../gllib/error.c:195: undefined
reference to `libintl_gettext'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:17457: test-glob.exe] Error 1
This patch should fix it.
2022-09-04 Bruno Haible <bruno@clisp.org>
glob tests: Fix link error on mingw.
* modules/glob-tests (Makefile.am): Link test-glob with $(LIBINTL).
diff --git a/modules/glob-tests b/modules/glob-tests
index afce2dbca0..5054196a23 100644
--- a/modules/glob-tests
+++ b/modules/glob-tests
@@ -12,7 +12,7 @@ configure.ac:
Makefile.am:
TESTS += test-glob
check_PROGRAMS += test-glob
-test_glob_LDADD = $(LDADD) $(LIB_MBRTOWC)
+test_glob_LDADD = $(LDADD) $(LIBINTL) $(LIB_MBRTOWC)
MOSTLYCLEANFILES += \
test-glob.tglobfile \
test-glob.tgloblink1 \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- glob tests: Fix link error on mingw,
Bruno Haible <=