CC=gcc CFLAGS="-O2" CXX=gcc CXXFLAGS="-O2 -felide-constructors -fno-exceptions -fno-rtti"
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DWITH_DEBUG=1 -DWITH_EMBEDDED_SERVER=1 -DCMAKE_BUILD_TYPE=Debug -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS:STRING=utf8,gbk -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE:BOOL=ON -DWITH_INNOBASE_STORAGE_ENGINE:BOOL=ON -DENABLED_LOCAL_INFILE=1 -DMYSQL_DATADIR=/data/mysql/data
/software/mysql-5.6.22/strings/ctype-ucs2.c:49:22: error: ?.factor?.defined but not used [-Werror=unused-variable]
static unsigned long lfactor[9]=
^
cc1: all warnings being treated as errors
make[2]: *** [strings/CMakeFiles/strings.dir/ctype-ucs2.c.o] Error 1
make[1]: *** [strings/CMakeFiles/strings.dir/all] Error 2
make: *** [all] Error 2
删掉 49和50两行
阅读(2249) | 评论(0) | 转发(0) |