From: Ben Pfaff Date: Fri, 6 Feb 2009 06:11:57 +0000 (-0800) Subject: Fix link errors on Windows when close module is used. X-Git-Tag: v0.1~6373 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=df1da811f288a89eb524a4176c6fd62bacfb954a Fix link errors on Windows when close module is used. * modules/close: Add $(LIB_CLOSE) to Link section. * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into $(LIB_CLOSE) on Windows. --- diff --git a/ChangeLog b/ChangeLog index 3d87cd3d0..2d07367ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-02-05 Ben Pfaff + + Fix link errors on Windows when close module is used. + * modules/close: Add $(LIB_CLOSE) to Link section. + * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into + $(LIB_CLOSE) on Windows. + 2009-02-05 Jim Meyering still avoid unused-parameter warnings, but do it cleanly diff --git a/m4/close.m4 b/m4/close.m4 index fcc9fb195..29d3abdd1 100644 --- a/m4/close.m4 +++ b/m4/close.m4 @@ -22,4 +22,6 @@ AC_DEFUN([gl_REPLACE_CLOSE], fi REPLACE_CLOSE=1 gl_REPLACE_FCLOSE + LIB_CLOSE="-lws2_32" + AC_SUBST([LIB_CLOSE]) ]) diff --git a/modules/close b/modules/close index bb852d458..138be1b0f 100644 --- a/modules/close +++ b/modules/close @@ -19,6 +19,9 @@ Makefile.am: Include: +Link: +$(LIB_CLOSE) + License: LGPLv2+