From d66b42da99c5cdf6d451146e0aa0aa623417e50b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 13 Oct 2014 07:40:35 -0700 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.]) -- 2.47.3