X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=005a24a4852b771675a76890cc6f7b55d8e03568;hb=613d586afd22159cee57c9524218c7200f4f1096;hp=4fe415e9ba2ad37e485254c863a0532f73874f00;hpb=2bb567c6a31e333ebdd16d6d076ba9976e6ed4fb;p=tinc diff --git a/configure.ac b/configure.ac index 4fe415e9..005a24a4 100644 --- a/configure.ac +++ b/configure.ac @@ -67,7 +67,9 @@ case $host_os in *mingw*) mingw=true AC_DEFINE(HAVE_MINGW, 1, [MinGW]) - LIBS="$LIBS -lws2_32 -lgdi32 -lcrypt32" + LIBS="$LIBS -lws2_32 -lgdi32 -lcrypt32 -liphlpapi" + LDFLAGS="$LDFLAGS -static" + CPPFLAGS="$CPPFLAGS -DMINIUPNP_STATICLIB" ;; *) AC_MSG_ERROR("Unknown operating system.")