Originally posted by: NimishMadan
Hi,
I am trying to compile apr and apr-utils libraries on AIX 6.1, the compilation is successful and I can see .so files getting created. But the issue is the apr-utils so file (libaprutil-1.so.0.3.4) is always looks for apr .so file in a particular directory. If I move apr .so file to some other directoy, ldd command still points to old directory and says that library not found even though I have set correct LIBPATH environmental varialble. I used following env variables while compiling apr and apr-utils. Please help me if I need to some other options for linker or gcc.
export LDFLAGS="-Wl,-brtl"
export CC=gcc
export CONFIG_SHELL=`which bash`
export CF_OPTS="--enable-shared --disable-static"
export CPPFLAGS="-fPIC"
Regards.
#AIX-Forum