CC=gcc CFLAGS=”-O3″ CXX=gcc CXXFLAGS=”-O3 -felide-constructors -fno-exceptions -fno-rtti” \
./configure \
–with-client-ldflags=-all-static \
–prefix=/usr/local/mysql –enable-assembler \
–localstatedir=/data/mysql –without-debug \
–enable-thread-safe-client –without-docs \
–with-big-tables –enable-local-infile –with-plugins=blackhole,heap,partition,myisam,innobase,innodb_plugin \
–with-charset=utf8 –with-extra-charsets=gbk,gb2312,latin1
与早期5.0编译参数变化的地方是:
1. 增加了 plugin 参数(不加也没关系,innodb会缺省编译进去)
2. 去掉 –with-mysqld-ldflags=-all-static (加上后,会导致innodb plugin无法启用)