mysql-5.1.31优化编译参数

CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer -ffixed-ebp"
export CFLAGS CXX CXXFLAGS 
./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --with-unix-socket-path=/tmp/mysql3306.sock --with-charset=utf8 --with-collation=utf8_general_ci --with-extra-charsets=all --with-plugins=max

一、当你用-static连接时,能够获得最快的可执行文件
二、在Linux上,最好用pgcc和-O3编译服务器 mysql

爱慕尔商城欢迎您的光临!
穿衣打扮  
城市物语 sql

相关文章
相关标签/搜索