Eric Blake <ebb9 <at> byu.net> writes: > In post-8.1 git, coreutils now fails to link on cygwin 1.5: > > CCLD sort.exe > sort.o: In function `pipe_fork': > /home/eblake/coreutils-tmp/src/sort.c:898: undefined reference to `_rpl_sleep' > collect2: ld returned 1 exit status
It also fails to link test-link.c. CCLD test-link.exe ../lib/libcoreutils.a(xalloc-die.o): In function `xalloc_die': /home/eblake/coreutils-tmp/lib/xalloc-die.c:34: undefined reference to `_libintl_gettext' ../lib/libcoreutils.a(error.o): In function `print_errno_message': /home/eblake/coreutils-tmp/lib/error.c:127: undefined reference to `_libintl_gettext' collect2: ld returned 1 exit status make[3]: *** [test-link.exe] Error 1 I should have caught this back when I modified test-rename.c, but the fix is the same, so I'll be pushing this at the same time as the final version of the sleep patch. From: Eric Blake <[email protected]> Date: Mon, 23 Nov 2009 15:23:39 -0700 Subject: [PATCH] tests: fix link failure on cygwin Counterpart to commit 8fe40b84bd8, since test-link.c uses rename, and we override gnulib with a rename() replacement that can xalloc_die. * gl/modules/link-tests.diff: New file. --- gl/modules/link-tests.diff | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) create mode 100644 gl/modules/link-tests.diff diff --git a/gl/modules/link-tests.diff b/gl/modules/link-tests.diff new file mode 100644 index 0000000..5d0cbc1 --- /dev/null +++ b/gl/modules/link-tests.diff @@ -0,0 +1,9 @@ +diff --git i/modules/link-tests w/modules/link-tests +index d8e7b1a..aca0e74 100644 +--- i/modules/link-tests ++++ w/modules/link-tests +@@ -12,3 +12,4 @@ configure.ac: + Makefile.am: + TESTS += test-link + check_PROGRAMS += test-link ++test_link_LDADD = $(LDADD) @LIBINTL@ -- 1.6.4.2
