summarylogtreecommitdiffstats
path: root/tk-dont-link-shared-with-static-libgcc.patch
blob: 1640ab16e8e3a6545b3ae1380cba5a0e9e5f55b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -Naur tk8.6.5-orig/win/tcl.m4 tk8.6.5/win/tcl.m4
--- tk8.6.5-orig/win/tcl.m4	2016-03-03 09:21:52.442037200 +0300
+++ tk8.6.5/win/tcl.m4	2016-03-03 09:21:54.114037200 +0300
@@ -635,7 +635,6 @@
 
     if test "${GCC}" = "yes" ; then
 	extra_cflags="-pipe"
-	extra_ldflags="-pipe -static-libgcc"
 	AC_CACHE_CHECK(for mingw32 version of gcc,
 	    ac_cv_win32,
 	    AC_TRY_COMPILE([
@@ -691,6 +690,7 @@
 	if test "${SHARED_BUILD}" = "0" ; then
 	    # static
             AC_MSG_RESULT([using static flags])
+            extra_ldflags="-pipe -static-libgcc"
 	    runtime=
 	    LIBRARIES="\${STATIC_LIBRARIES}"
 	    EXESUFFIX="s\${DBGX}.exe"