I'm compiling PHP 5.2.1 and trying to optimize it as much as possible by using some hints here:
http://www.linux-mag.com/id/2573/
The server has a Xeon (as far as I know) and is running RHEL4 (not my choice).
I enter this command:
Code:
export CFLAGS="–march=pentium4 –O3 \
–pipe –msse2 –mfpmath=sse,387 \
–mmmx –fomit-frame-pointer \
–prefer-non-pic"
And then ./configure ... (with all my modules etc), then make.
I notice throughout the compile it has this:
-I/usr/include -march=pentium4 -O3 -pipe -msse2 -mfpmath=sse,387 -mmmx -fomit-frame-pointer -prefer-non-pic -prefer-pic
And at the end it says:
gcc: unrecognized option `-prefer-non-pic'
The build succeeds, but prefer-non-pic is meant to give more performance (according to the article).
Can anyone tell me why it's not recognizing -prefer-non-pic?
TIA