Skip to content

Commit 45b2924

Browse files
hebastobluca
authored andcommitted
Fix Autotools-generated libzmq.pc file
This change fixes cross-compiling for Windows with static linking.
1 parent 481cc3f commit 45b2924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ case "${host_os}" in
362362

363363
if test "x$enable_static" = "xyes"; then
364364
CPPFLAGS="-DZMQ_STATIC $CPPFLAGS"
365-
PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE -liphlpapi"
365+
PKGCFG_LIBS_PRIVATE="$PKGCFG_LIBS_PRIVATE -liphlpapi -lws2_32"
366366
fi
367367
# Set FD_SETSIZE to 16384
368368
CPPFLAGS=" -DFD_SETSIZE=16384 $CPPFLAGS"

0 commit comments

Comments
 (0)