File tk-8.5.9-mingww64.patch of Package mingw64-tk
--- tk8.5.9/win/tkWin32Dll.c 2005-12-02 01:19:04.000000000 +0100 +++ tk8.5.9/win/tkWin32Dll.c 2010-11-09 12:02:31.324634605 +0100 @@ -152,7 +152,11 @@ */ "movl $0x0, 0x0(%%esp)" "\n\t" +#ifdef _WIN64 + "call TkFinalize" "\n\t" +#else "call _TkFinalize" "\n\t" +#endif /* * Come here on a normal exit. Recover the TCLEXCEPTION_REGISTRATION