summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-06-15 16:27:31 +0200
committerWerner Koch <wk@gnupg.org>2007-06-15 16:27:31 +0200
commit915b7b21fdb2d84ef55542681f418690dd8832db (patch)
tree43c4b7465e0120d6b63591b0c61b3338030f65f7 /configure.ac
parent2007-06-15 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-915b7b21fdb2d84ef55542681f418690dd8832db.tar.xz
gnupg2-915b7b21fdb2d84ef55542681f418690dd8832db.zip
Build fixes for W32
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
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