diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index d0c318a87..9da692153 100644 --- a/configure.ac +++ b/configure.ac @@ -1152,13 +1152,17 @@ AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes) GNUPG_CHECK_GNUMAKE # Add some extra libs here so that previous tests don't fail for -# mysterious reasons - the final link step should bail out. +# mysterious reasons - the final link step should bail out. +# W32SOCKLIBS is also defined so that if can be used for tools not +# requiring any network stuff but linking to code in libcommon which +# tracks in winsock stuff (e.g. init_common_subsystems. if test "$have_w32_system" = yes; then - NETLIBS="${NETLIBS} -lwsock32" + W32SOCKLIBS="-lwsock32" + NETLIBS="${NETLIBS} ${W32SOCKLIBS}" fi AC_SUBST(NETLIBS) - +AC_SUBST(W32SOCKLIBS) # # Setup gcc specific options |