Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 0.8Mb


MySQL Internals Manual  /  ...  /  Building Using the Same Options as MySQL Official Releases

4.3.3 Building Using the Same Options as MySQL Official Releases

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 them, use the -DBUILD_CONFIG=mysql_release CMake option:

  • Unix (Makefiles)

    mkdir bld
    cd bld
    cmake .. -DBUILD_CONFIG=mysql_release
    make
    
  • Visual Studio (from the command line)

    mkdir bld
    cd bld
    cmake .. -DBUILD_CONFIG=mysql_release
    devenv mysql.sln /build relwithdebinfo
    

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
    

User Comments
Sign Up Login You must be logged in to post a comment.