using the Linuxthread complie mysql in FreeBSD
have two methods
1.make ports at mysql-server in port directly.
env BUILD_STATIC=yes WITH_LINUXTHREADS=yes BUILD_OPTIMIZED=yes make install clean is ok
2.install port of linuxthread frist,it's not neccssary do it myself
cd /usr/ports/devel/linuxthreads make install clean ,next step:mysql src tar zxf mysql-version.tar.gz cd mysql-version ./configure --prefix=/usr/local/mysql --without-debug --without-readline --without-bench --without-extra-tools --with-libwrap --with-vio --enable-thread-safe-client --enable-assembler --with-extra-charsets=latin1,latin2,gb2312,gbk,big5 --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r' CC=gcc CXX=gcc CFLAGS="-pipe -mcpu=i686 -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -O3 -fno-omit-frame-pointer" CXXFLAGS="-pipe -mcpu=i686 -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -O3 -fno-omit-frame-pointer -felide-constructors -fno-rtti -fno-exceptions" gmake gmake install-strip configure
the end
posted on 2004-04-15 12:08 LeighSword 阅读(223) 评论(0) 编辑 收藏 举报