MySQL Source-Configuration Options • -DINSTALL_PRIV_LIBDIR= dir_name • -DINSTALL_SBINDIR= dir_name • -DINSTALL_SECURE_FILE_PRIVDIR= dir_name • -DINSTALL_SHAREDIR= dir_name • -DINSTALL_STATIC_LIBRARIES= bool • -DINSTALL_SUPPORTFILESDIR= dir_name • -DLINK_RANDOMIZE= bool • -DLINK_RANDOMIZE_SEED= val • -DMYSQL_DATADIR= dir_name • -DODBC_INCLUDES= dir_name 227 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. Where to install the  mysqld  server. 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” . Where to install  aclocal/mysql.m4 . Whether to install static libraries. The default is  ON . If set to  OFF , these libraries are not installed: libmysqlclient.a ,  libmysqlservices.a . Where to install extra support files. Whether to randomize the order of symbols in the  mysqld  binary. The default is  OFF . This option should be enabled only for debugging purposes. Seed value for the  LINK_RANDOMIZE  option. The value is a string. The default is  mysql , an arbitrary choice. The location of the MySQL data directory. This value can be set at server startup with the  --datadir  option. The location of the ODBC includes directory, and may be used while configuring Connector/ODBC.