From 915b7b21fdb2d84ef55542681f418690dd8832db Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 15 Jun 2007 14:27:31 +0000 Subject: Build fixes for W32 --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'configure.ac') 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 -- cgit v1.2.3