derle.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. mkdir -p build
  2. cd build
  3. cmake ../ \
  4. -DCMAKE_BUILD_TYPE=Release \
  5. -DCMAKE_INSTALL_PREFIX=/usr \
  6. -DINSTALL_SYSCONFDIR=/etc/mysql \
  7. -DINSTALL_SYSCONF2DIR=/etc/my.cnf.d \
  8. -DMYSQL_DATADIR=/var/lib/mysql \
  9. -DINSTALL_UNIX_ADDRDIR=/run/mysqld/mysqld.sock \
  10. -DDEFAULT_CHARSET=utf8 \
  11. -DDEFAULT_COLLATION=utf8_general_ci \
  12. -DENABLED_LOCAL_INFILE=ON \
  13. -DINSTALL_MANDIR=share/man \
  14. -DINSTALL_PLUGINDIR=/usr/lib/mysql/plugin \
  15. -DINSTALL_SCRIPTDIR=bin \
  16. -DINSTALL_INCLUDEDIR=include/mysql \
  17. -DINSTALL_DOCREADMEDIR=share/mysql \
  18. -DINSTALL_SUPPORTFILESDIR=share/mysql \
  19. -DINSTALL_MYSQLSHAREDIR=share/mysql \
  20. -DINSTALL_DOCDIR=share/doc \
  21. -DINSTALL_SHAREDIR=share/mysql \
  22. -DWITH_PCRE=bundled \
  23. -DWITH_READLINE=ON \
  24. -DWITH_ZLIB=system \
  25. -DWITH_SSL=system \
  26. -DWITH_LIBWRAP=OFF \
  27. -DWITH_EXTRA_CHARSETS=complex \
  28. -DWITH_EMBEDDED_SERVER=ON \
  29. -DWITH_ARCHIVE_STORAGE_ENGINE=1 \
  30. -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
  31. -DWITH_INNOBASE_STORAGE_ENGINE=1 \
  32. -DWITH_PARTITION_STORAGE_ENGINE=1 \
  33. -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
  34. -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 \
  35. -DWITHOUT_TOKUDB_STORAGE_ENGINE=1 \
  36. -DCMAKE_C_FLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -fomit-frame-pointer" \
  37. -DCMAKE_CXX_FLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -felide-constructors -fno-rtti" \
  38. -DWITH_MYSQLD_LDFLAGS="${LDFLAGS}"
  39. make ${MAKEJOBS}