MySQL Source-Configuration Options DISABLE_PSI_IDLE DISABLE_PSI_MEMORY DISABLE_PSI_METADATA DISABLE_PSI_MUTEX DISABLE_PSI_PS DISABLE_PSI_RWLOCK DISABLE_PSI_SOCKET DISABLE_PSI_SP DISABLE_PSI_STAGE DISABLE_PSI_STATEMENT DISABLE_PSI_STATEMENT_DIGEST DISABLE_PSI_TABLE DISABLE_PSI_THREAD DISABLE_PSI_TRANSACTION For example, to compile without mutex instrumentation, configure MySQL using the -DDISABLE_PSI_MUTEX=1  option. To exclude a storage engine from the build, use  -DWITH_ engine _STORAGE_ENGINE=0 . Examples: -DWITH_ARCHIVE_STORAGE_ENGINE=0 -DWITH_EXAMPLE_STORAGE_ENGINE=0 -DWITH_FEDERATED_STORAGE_ENGINE=0 It is also possible to exclude a storage engine from the build using  - DWITHOUT_ engine _STORAGE_ENGINE=1  (but  -DWITH_ engine _STORAGE_ENGINE=0  is preferred). Examples: -DWITHOUT_ARCHIVE_STORAGE_ENGINE=1 -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 If neither  -DWITH_ engine _STORAGE_ENGINE  nor  -DWITHOUT_ engine _STORAGE_ENGINE  are specified for a given storage engine, the engine is built as a shared module, or excluded if it cannot be built as a shared module. Feature Options • -DADD_GDB_INDEX= bool This option determines whether to enable generation of a  .gdb_index  section in binaries, which makes loading them in a debugger faster. The option is disabled by default.  lld  linker is used, and is disabled by It has no effect if a linker other than  lld  or GNU  gold  is used. This option was added in MySQL 8.0.18. • -DCOMPILATION_COMMENT= string A descriptive comment about the compilation environment. As of MySQL 8.0.14,  mysqld  uses COMPILATION_COMMENT_SERVER . Other programs continue to use  COMPILATION_COMMENT . • -DCOMPRESS_DEBUG_SECTIONS= bool Whether to compress the debug sections of binary executables (Linux only). Compressing executable debug sections saves space at the cost of extra CPU time during the build process. The default is  OFF . If this option is not set explicitly but the  COMPRESS_DEBUG_SECTIONS  environment variable is set, the option takes its value from that variable. This option was added in MySQL 8.0.22. 229