Fix Autotools-generated libzmq.pc file

This change fixes cross-compiling for Windows with static linking.
This commit is contained in:
Hennadii Stepanov 2024-03-20 14:37:26 +00:00 committed by Luca Boccassi
parent 481cc3fa2c
commit 45b2924a0a

View File

@ -362,7 +362,7 @@ case "${host_os}" in
if test "x$enable_static" = "xyes"; then
CPPFLAGS="-DZMQ_STATIC $CPPFLAGS"
PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE -liphlpapi"
PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE -liphlpapi -lws2_32"
fi
# Set FD_SETSIZE to 16384
CPPFLAGS=" -DFD_SETSIZE=16384 $CPPFLAGS"