查看mysql5.5 cmake安装时的编译参数

查看编译安装的mysql5.5之后版本,编译时cmake 所使用的参数

比如:

 

    我的mysql5.5 安装目录是 /usr/local/mysql-5.6.16

 

 

# cd /usr/local/mysql-5.6.16/docs

 

# vim INFO_BIN  

(其中 Pointer size: 4 一行之后的内容就是所要的参数,需要注意的是,这里的参数的书写格式并不是在执行 cmake 命令时参数的标准格式 ,使用的时候要去掉 :BOOL或 PATH: 等字符)

===== Information about the build process: =====

Build was run at 2016-08-12 09:44:13 on host 'node1'

 

Build was done on  Linux-2.6.32-573.el6.x86_64 using x86_64

Build was done using cmake 2.8.12

 

===== Compiler flags used (from the 'sql/' subdirectory): =====

# compile C with /usr/bin/cc

# compile CXX with /usr/bin/c++

C_FLAGS =  -Wall -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -I/usr/local/src/mysql-5.6.16/include -I/usr/local/src/mysql-5.6.16/sql -I/usr/local/src/mysql-5.6.16/regex -I/usr/local/src/mysql-5.6.16/zlib -I/usr/local/src/mysql-5.6.16/extra/yassl/include -I/usr/local/src/mysql-5.6.16/extra/yassl/taocrypt/include    -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED

C_DEFINES = -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DMYSQL_SERVER

CXX_FLAGS =  -Wall -Wno-unused-parameter -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF -I/usr/local/src/mysql-5.6.16/include -I/usr/local/src/mysql-5.6.16/sql -I/usr/local/src/mysql-5.6.16/regex -I/usr/local/src/mysql-5.6.16/zlib -I/usr/local/src/mysql-5.6.16/extra/yassl/include -I/usr/local/src/mysql-5.6.16/extra/yassl/taocrypt/include    -DHAVE_YASSL -DYASSL_PREFIX -DHAVE_OPENSSL -DMULTI_THREADED

CXX_DEFINES = -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DMYSQL_SERVER

 

Pointer size: 8

 

===== Feature flags used: =====

-- Cache values

CMAKE_BUILD_TYPE:STRING=RelWithDebInfo

CMAKE_INSTALL_PREFIX:PATH=/usr/local/mysql-5.6.16

COMMUNITY_BUILD:BOOL=ON

ENABLED_PROFILING:BOOL=ON

ENABLE_DEBUG_SYNC:BOOL=ON

ENABLE_DOWNLOADS:BOOL=OFF

ENABLE_GCOV:BOOL=OFF

ENABLE_GPROF:BOOL=OFF

ENABLE_MEMCACHED_SASL:BOOL=OFF

ENABLE_MEMCACHED_SASL_PWDB:BOOL=OFF

FEATURE_SET:STRING=community

ENABLE_MEMCACHED_SASL_PWDB:BOOL=OFF

FEATURE_SET:STRING=community

INSTALL_LAYOUT:STRING=STANDALONE

MYSQL_DATADIR:PATH=/data/mysql_data

MYSQL_MAINTAINER_MODE:BOOL=OFF

OPTIMIZER_TRACE:BOOL=ON

TMPDIR:BOOL=OFF

WITH_ARCHIVE_STORAGE_ENGINE:BOOL=ON

WITH_ASAN:BOOL=OFF

WITH_BLACKHOLE_STORAGE_ENGINE:BOOL=ON

WITH_DEBUG:BOOL=OFF

WITH_DEFAULT_COMPILER_OPTIONS:BOOL=ON

WITH_DEFAULT_FEATURE_SET:BOOL=ON

WITH_EDITLINE:STRING=bundled

WITH_EMBEDDED_SERVER:BOOL=ON

WITH_EXAMPLE_STORAGE_ENGINE:BOOL=OFF

WITH_EXTRA_CHARSETS:STRING=all

WITH_FEDERATED_STORAGE_ENGINE:BOOL=ON

WITH_INNOBASE_STORAGE_ENGINE:BOOL=ON

WITH_INNODB_MEMCACHED:BOOL=OFF

WITH_LIBEVENT:STRING=bundled

WITH_LIBWRAP:BOOL=OFF

WITH_PARTITION_STORAGE_ENGINE:BOOL=ON

WITH_PERFSCHEMA_STORAGE_ENGINE:BOOL=ON

WITH_PIC:BOOL=OFF

WITH_SSL:STRING=bundled

WITH_UNIT_TESTS:BOOL=ON

WITH_VALGRIND:BOOL=OFF

WITH_ZLIB:STRING=bundled

 

===== EOF =====

 


分割线
感谢打赏
江西数库信息技术有限公司
YWSOS.COM 平台代运维解决方案
 评论
 发表评论
姓   名:

Powered by AKCMS