top
Loading...
2.12.5.1.HP-UX10.20版注意事項
2.12.5.1. HP-UX 10.20版注意事項

HP-UX上編譯MySQL時,有一些“小”問題。我們推薦您使用gcc而不是HP-UX自己的編譯器,因為gcc可以生成更好的代碼!

我們推薦在HP-UX上使用gcc 2.95,不使用高度優化標志(類似-O6),因為這在HP-UX 上可能不安全。

下面的configure行在gcc 2.95中應當工作:

CFLAGS="-I/opt/dce/include -fpic" 
CXXFLAGS="-I/opt/dce/include -felide-constructors -fno-exceptions 
-fno-rtti" 
CXX=gcc 
./configure --with-pthread 
    --with-named-thread-libs='-ldce' 
    --prefix=/usr/local/mysql --disable-shared

下面的configure行在gcc 3.1中應當工作:

CFLAGS="-DHPUX -I/opt/dce/include -O3 -fPIC" CXX=gcc 
CXXFLAGS="-DHPUX -I/opt/dce/include -felide-constructors 
    -fno-exceptions -fno-rtti -O3 -fPIC" 
./configure --prefix=/usr/local/mysql 
    --with-extra-charsets=complex --enable-thread-safe-client 
    --enable-local-infile  --with-pthread 
    --with-named-thread-libs=-ldce --with-lib-ccflags=-fPIC
    --disable-shared
作者:mysql.com
來源:http://dev.mysql.com/doc/refman/5.1/zh/installing.html
北斗有巢氏 有巢氏北斗