Back to home page

MySQL Cross Reference

 
 

    


0001 This directory used to contain lots of build scripts for building
0002 MySQL on various platforms. They are mostly gone, use cmake instead.
0003 
0004 Some scripts have been kept for backward compatibility (other scripts
0005 depend on them). Others have been kept to illustrate how to enable
0006 gcov or gprof, or explicitly selecting 64bit architecture.  If you
0007 want to use these scripts for building, you may want to speed things
0008 up a bit by setting environment variable MAKEFLAGS="-j8"
0009 (or some other number/flag depending on your environment)
0010 
0011 The recommended way to build MySQL for developers:
0012 
0013 cd <some build directory>
0014 cmake <path to source directory>
0015 make
0016 
0017 This will give you a release build, with compiler options taken from
0018 ../cmake/build_configurations/compiler_options.cmake
0019 and "feature set" taken from
0020 ../cmake/build_configurations/feature_set.cmake
0021 
0022 Adding -DWITH_DEBUG=1 to the cmake command line gives you a debug build.
0023 
0024 
0025 Building on Windows is slightly different:
0026 cd <some build directory>
0027 cmake <path to source directonry>
0028 
0029 devenv MySQL.sln /build Debug
0030 or
0031 devenv MySQL.sln /build RelWithDebInfo
0032 
0033 
0034 If you have special needs, you can disable the defaults by setting
0035 these cmake variables off:
0036 
0037 WITH_DEFAULT_COMPILER_OPTIONS
0038 WITH_DEFAULT_FEATURE_SET