User forums > General (but related to Code::Blocks)
TDM-GCC 4.5 series (Latest: 4.5.2 - 2011-03-27)
TDragon:
--- Quote from: TDragon on June 09, 2010, 12:42:49 am ---I may attempt to enable it in a future build.
--- End quote ---
a14331990:
Have a look at gcc 4.5.1 changelog.
--- Quote ---All languages
GCC's new link-time optimizer (-flto) now also works on a few non-ELF targets:
Cygwin (*-cygwin*)
MinGW (*-mingw*)
Darwin on x86-64 (x86_64-apple-darwin*)
LTO is not enabled by default for these targets. To enable LTO, you should configure with the --enable-lto option.
--- End quote ---
I have successfully built gcc 4.5.1 on MinGW platform, look at this thread for details
Leo's Build of MinGW GCC 4.5.1 Released
http://forums.codeblocks.org/index.php/topic,13046.0.html
dll linking and lto are all ok. :)
Best Regards.
a14331990 a.k.a Leo.
ironhead:
I don't know if I'm missing something, but when I try to link against libstdc++.dll with the 64-bit builds, I'm still getting the symbols from libstdc++.a. As per the mingw-w64 instructions, I'm compiling with '-D_GLIBCXX_DLL' and linking with '-shared-libgcc' along with '-lstdc++.dll'.
Any help would be greatly appreciated, thank you.
TDragon:
Change "-lstdc++.dll" to "-shared-libstdc++".
There is a note to this effect under "Exceptions and DLLs" in the TDM-GCC README. This is a fairly substantive reversal with respect to vanilla GCC sources, however, so it could probably stand to be made a bit clearer.
ironhead:
--- Quote from: TDragon on August 12, 2010, 02:50:52 pm ---Change "-lstdc++.dll" to "-shared-libstdc++".
--- End quote ---
Much better thank you!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version