I am trying to make PHP use libraries in /opt/common/lib.
But I am not able to do so.
If i run an LDD to check what libraries are going to be used when running
it shows /usr/local/lib/*
What I have tried.
In my configure script I have set up my
CPPFLAGS="-I/opt/common/include"
LDFLAGS="-I/opt/common/lib -R/opt/common/lib -I/opt/common/openssl-0.9.8n/lib -L
/opt/common/openssl-0.9.8n/lib"
LD_LIBRARY_PATH=/usr/sfw/lib:/opt/common/lib:/opt/common/openssl-0.9.8n/lib
export LD_LIBRARY_PATH LDFLAGS CPPFLAGS
But this does not work, it seems like the /usr/local/lib is hard coded in the source code.
I have tried edeting the configure script and remove all reference to /usr/local/lib
But when I run .configure with my libs with the paths and then run make it still shows /usr/local/lib for some of my libs.
So then I edited my Makefile and remove all references of /usr/local/lib
and yes I ran the make clean command before.
Then I ran the make command and still /usr/local/lib
I there a way that I have not mentioned to force PHP to use /opt/common/***
Thanks