From: Amos Jeffries Date: Mon, 13 Oct 2014 14:40:35 +0000 (-0700) Subject: Windows: link libgcc and libstdc statically X-Git-Tag: merge-candidate-3-v1~551 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d66b42da99c5cdf6d451146e0aa0aa623417e50b;p=thirdparty%2Fsquid.git Windows: link libgcc and libstdc statically MinGW builds require static linking to libgcc and libstdc++ in order to run natively on windows without additional DLL installation. --- diff --git a/configure.ac b/configure.ac index e4e85c420a..51c6f1516b 100644 --- a/configure.ac +++ b/configure.ac @@ -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.])