]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows: link libgcc and libstdc statically
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Oct 2014 14:40:35 +0000 (07:40 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Oct 2014 14:40:35 +0000 (07:40 -0700)
MinGW builds require static linking to libgcc and libstdc++ in order to
run natively on windows without additional DLL installation.

configure.ac

index e4e85c420a243eac531cf5541b73409f0ad75776..51c6f1516bc2c09a4c81fe182d18e68c995e18fb 100644 (file)
@@ -222,7 +222,7 @@ case "$squid_host_os" in
 mingw)
   AC_PATH_PROG(WIN32_PSAPI, psapi.dll, none)
   CFLAGS="$CFLAGS -mthreads"
-  CXXFLAGS="$CXXFLAGS -mthreads"
+  CXXFLAGS="$CXXFLAGS -mthreads -static-libgcc -static-libstdc++"
   if test "x$ac_cv_path_WIN32_PSAPI" = "xnone"; then
     AC_MSG_NOTICE([PSAPI.DLL is recommended to run Squid on Windows NT Platform])
     AC_MSG_NOTICE([Please see PSAPI.DLL section on doc/win32-relnotes.html.])