[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fix for link error on mingw with close module
From: |
Simon Josefsson |
Subject: |
Re: fix for link error on mingw with close module |
Date: |
Fri, 06 Feb 2009 22:08:28 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux) |
Ben Pfaff <address@hidden> 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