visualboyadvance-m/CMakeScripts
Rafael Kitover 349bbd13bc add LTO support, fix libssp link, add -ggdb3 -Og
Add support for Link Time Optimization (LTO) on gcc and Clang.

Link libssp only when it is on the system, some toolchains like Ubuntu's
do not require explicitly linking to libssp. On Win32 try to link it
statically.

In debug builds with GCC, use -ggdb3 -Og, otherwise use -g .

Two new cmake modules were written for this:

* FindSSP.cmake -- this is for finding libssp on the system.

* UseGCCBinUtilsWrappers.cmake -- this is for using gcc binutils
wrappers such as gcc-ar, which is required for gcc LTO to work.

These will be distributed separately as well.
2016-11-21 12:37:21 -08:00
..
CMakeASM_NASMInformation.cmake compile/link flags improvements 2016-11-20 11:11:52 -08:00
CMakeDetermineASM_NASMCompiler.cmake CMAKE: Use built in support for ASM compilers. Bump required version to 2.6.0 2011-02-20 13:31:49 +00:00
CMakeTestASM_NASMCompiler.cmake CMAKE: Use built in support for ASM compilers. Bump required version to 2.6.0 2011-02-20 13:31:49 +00:00
FindDirectX.cmake all current vba-m Wx patches applied to trunk. 2011-05-25 11:55:46 +00:00
FindGettext.cmake NLS: Improve translations build 2011-12-03 20:29:05 +00:00
FindSDL2.cmake compile/link flags improvements 2016-11-20 11:11:52 -08:00
FindSFML.cmake msys2 build improvements 2016-11-14 10:56:50 -08:00
FindSSP.cmake add LTO support, fix libssp link, add -ggdb3 -Og 2016-11-21 12:37:21 -08:00
GetGitRevisionDescription.cmake added git support to cmakelists.txt 2015-06-12 08:04:26 -04:00
GetGitRevisionDescription.cmake.in added git support to cmakelists.txt 2015-06-12 08:04:26 -04:00
UseGCCBinUtilsWrappers.cmake add LTO support, fix libssp link, add -ggdb3 -Og 2016-11-21 12:37:21 -08:00