• -DINSTALL_PRIV_LIBDIR= dir_name 

The location of the dynamic library directory. 

Default locations: RPM = /usr/lib64/mysql/private/ , DEB = /usr/lib/mysql/private/ , and TAR = lib/private/ . 

This option was added in MySQL 8.0.18. 

For Protobuf: Because this is a private location, loader (such as ld-linux.so on Linux) may not find the libprotobuf.so  files without help. To guide loader, RPATH  with value $ORIGIN/../ $INSTALL_PRIV_LIBDIR  is added to mysqld and mysqlxtest. This works for most cases but when using the Resource Group feature, mysqld  is setsuid  and then loader ignores RPATH  which contains $ORIGIN . To overcome this, an explicit full path to the directory is set in DEB and RPM variants of mysqld, as the target destination is known. For tarball installs, patching of mysqld with a tool like patchelf  is required. 

• -DINSTALL_SBINDIR= dir_name 

Where to install the mysqld  server. 

• -DINSTALL_SECURE_FILE_PRIVDIR= dir_name 

The default value for the secure_file_priv  system variable. The default value is platform specific and depends on the value of the INSTALL_LAYOUT CMake  option; see the description of the secure_file_priv  system variable in Section 5.1.8, “Server System Variables” . 

• -DINSTALL_SHAREDIR= dir_name 

Where to install aclocal/mysql.m4 . 

• -DINSTALL_STATIC_LIBRARIES= bool 

Whether to install static libraries. The default is ON . If set to OFF , these libraries are not installed: libmysqlclient.a , libmysqlservices.a . 

• -DINSTALL_SUPPORTFILESDIR= dir_name 

Where to install extra support files. 

• -DLINK_RANDOMIZE= bool 

Whether to randomize the order of symbols in the mysqld  binary. The default is OFF . This option should be enabled only for debugging purposes. 

• -DLINK_RANDOMIZE_SEED= val 

Seed value for the LINK_RANDOMIZE  option. The value is a string. The default is mysql , an arbitrary choice. 

• -DMYSQL_DATADIR= dir_name 

The location of the MySQL data directory. 

This value can be set at server startup with the --datadir  option. 

• -DODBC_INCLUDES= dir_name 

The location of the ODBC includes directory, and may be used while configuring Connector/ODBC. 

