Official MySQL releases add some compiler options. Also, some storage engines are linked statically into mysqld (for example, ARCHIVE). These build options for official releases are stored in cmake/build_configurations/mysql_release.cmake. To use the options, use the -DBUILD_CONFIG=mysql_release cmake parameter.
mkdir bld cd bld cmake -DBUILD_CONFIG=mysql_release ..
Unix (Makefiles)
make
Visual Studio (using command line)
devenv mysql.sln /build relwithdebinfo
Note that on Linux, the offical release requires libaio to be installed on the build machine. For example:
RedHat/Fedora
sudo yum install libaio-devel
Debian/Ubuntu
sudo apt-get install libaio-dev
