Icc 9 compile script for PHP5.2.3 on x86_64

默认的php脚本是无法在x86_64上面编译的。
此脚本适用于php5.2.x.

flags="-cxxlib-icc -i-static -unroll2 -O3 -no-prec-div -xP " \
CC=icc \
CXX=icpc \
CFLAGS="$flags" \
CXXFLAGS="$flags" \
./configure \
--prefix=/usr/local/php5  \
--with-libdir=lib64 \
--enable-force-cgi-redirect \
--enable-fastcgi \
--enable-ftp \
--enable-calendar \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-mbstr-enc-trans \
--enable-mbregex \
--enable-shmod \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-inline-optimization \
--disable-ipv6 \
--disable-debug \
--with-config-file-path=/usr/local/php5/etc \
--with-config-file-scan-dir=/usr/local/php5/etc/php.d \
--with-zlib \
--with-curl \
--with-dom \
--with-dom-xslt \
--with-gd=/usr \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-gettext \
--with-openssl=shared \
--with-mysql \
--with-freetype-dir=/usr \
--with-mysqli \
--with-iconv  \
--with-gettext \
--with-xml \
--with-kerberos \
--with-pcre-regex \
--with-mime-magic=/usr/share/file/magic.mime
make clean
make

Comments

Leave a Reply