summaryrefslogtreecommitdiff
path: root/modules/getlogin-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2016-12-18 00:38:37 +0100
committerBruno Haible <bruno@clisp.org>2016-12-18 00:41:01 +0100
commitf9c744dbd9527cc69be7f4f4ff712dd13b0ebedf (patch)
tree2ad9d51e6422f27e29acfcdabb41f3bb5969cb14 /modules/getlogin-tests
parent15bde6cfc0288f14d7a3140b22c56edbe954a89d (diff)
downloadgnulib-f9c744dbd9527cc69be7f4f4ff712dd13b0ebedf.tar.gz
getlogin, getlogin_r: Fix link errors on MSVC.
* m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro. * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN. (Link): New section. * modules/getlogin_r (Files): Add m4/getlogin.m4. (configure.ac): Require gl_LIB_GETLOGIN. (Link): New section. * NEWS: Mention the new link requirements. * modules/getlogin-tests (test_getlogin_LDADD): New variable. * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
Diffstat (limited to 'modules/getlogin-tests')
-rw-r--r--modules/getlogin-tests1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/getlogin-tests b/modules/getlogin-tests
index 6facd60fb0..c8cdb05eb0 100644
--- a/modules/getlogin-tests
+++ b/modules/getlogin-tests
@@ -11,3 +11,4 @@ AC_CHECK_FUNCS_ONCE([ttyname])
Makefile.am:
TESTS += test-getlogin
check_PROGRAMS += test-getlogin
+test_getlogin_LDADD = $(LDADD) $(LIB_GETLOGIN)