Hunter的大杂烩

May 21, 2012

mysql 5.1.63编译参数

Filed under: 技术话题 — hunter @ 4:43 pm

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无法启用)

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress