Ben Pfaff <b...@cs.stanford.edu> writes:

> When the close module is used on Windows, lib/close.c calls
> functions that are defined in libws2_32, but there is nothing
> that will cause us to link against that library.  Thus, this
> commit adds $(LIB_CLOSE) to put on the linker command line to
> supply -lws2_32 when necessary.
>
> This might need a little bit of explanation.  When a program
> actually uses sockets, through the sockets module, $(LIBSOCKET)
> will link against the correct library.  This change is useful for
> indirect use of the ws2_32 library, via e.g. the gethostname
> module.
>
> This commit is due to a problem showing up in PSPP.
>
> Comments?

Sounds good, it may explain this build failure:

http://autobuild.josefsson.org/gnulib/log-200902061418122444000.txt

/Simon


Reply via email to