How to find out which compiler/ulinker flags are used
When using Makefile generator it is easy to examine which
compiler flags are used to build. For example, compiler flags
for mysqld are in
and the linker command line is in
What is CMakeCache.txt?
CMake caches results of platform checks in CMakeCache.txt. It is a nice feature because tests do not rerun when reconfiguring (e.g when a new test was added).The downside of caching is that when a platform test was wrong and was later corrected, the cached result is still used. If you encounter this situation, which should be a rare occation, you need either to remove the offending entry from CMakeCache.txt (if test was for HAVE_FOO, remove lines containing HAVE_FOO from CMakeCache.txt) or just remove the cache file.