Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Intel C/C++ Compiler + PHP/libtool

martino-g
Beginner
361 Views
Hi,

I'm trying to perform some benchmarks between Intel Compiler and GCC in Apache environment.

I'm managing to get PHP compiling, but libtool / the process isn't creating .so files (only .a, .la). So this results in no valid libphp5.so module for Apache to load.

Here's my build:
make clean && CC="icc" CFLAGS="-O3 -ip -mp -restrict -xT -fast -mtune=core2 -parallel"
CXX="icpc" CXXFLAGS="-O3 -ip -mp -restrict -xT -fast -mtune=core2 -parallel"
LDFLAGS="-static-libgcc"
./configure
--prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql-sock=/tmp/mysql.sock
--with-mysqli=/usr/local/mysql-client/bin/mysql_config
--enable-mysqlnd
--with-libxml-dir=/usr/local/libxml-intel
--with-xsl=/usr/local/libxslt-intel
--with-config-file-path=/etc
--enable-force-cgi-redirect
--enable-inline-optimization
--with-zlib
--enable-mbstring
--enable-sockets
--with-pear
--disable-cgi
--disable-pdo
--disable-debug
--disable-json
--disable-hash
--disable-session
--disable-simplexml
--disable-tokenizer
--disable-filter
--disable-xmlreader
--disable-xmlwriter
--disable-sockets
--disable-reflection
--without-sqlite
--without-unixODBC
--without-mysql
--without-odbc
--without-gd
&& make -j6 && make install

It builds without error. I'm no Linux/GNU expert so there is probably something very simple I am missing :)

- Cheers
0 Kudos
1 Reply
Feilong_H_Intel
Employee
361 Views

I compiledApache & PHPwith icc a long time ago. I remember that I need to compile libtool with icc before compiling some open-source application (sorry I'm not 100% sure thatthe app is PHP). Why don't you try to compile libtool with icc first and compileyour PHPthen?

Thanks,

Feilong

0 Kudos
Reply