From b49242fcb0dbf5c50cc1410c39747080de7363dd Mon Sep 17 00:00:00 2001 From: Paul Graham Date: Fri, 9 Jun 2017 13:33:14 +0200 Subject: [PATCH] Remove misleading CFLAGS / LDFLAGS. These variables were being ignored because libtool doesn't pass -static-libgcc to GCC. If you want to link libgcc statically, currently the only way to achieve this is to manually add -static-libgcc to CC variable. See: http://www.mingw.org/wiki/HOWTO_Sneak_GCC_Switches_Past_Libtool --- m4/check-os-options.m4 | 2 -- 1 file changed, 2 deletions(-) diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index 1a7b940..50438dc 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 @@ -106,8 +106,6 @@ char buf[1]; getentropy(buf, 1); CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_THREAD_SAFE_FUNCTIONS" CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0501" CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_SPEED" - CFLAGS="$CFLAGS -static-libgcc" - LDFLAGS="$LDFLAGS -static-libgcc" AC_SUBST([PLATFORM_LDADD], ['-lws2_32']) ;; *solaris*)