Which library path should I choose to put in LIBPATH enviroment variable?
Thanks in advance,
This topic has been locked.
1 reply Latest Post - 2011-04-07T16:23:07Z by haubi
Pinned topic AIX 5.3: difference between "/usr/lib" and "/usr/ccs/lib"
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-04-07T16:23:07Z at 2011-04-07T16:23:07Z by haubi
haubi 060001CR9T37 PostsACCEPTED ANSWER
Re: AIX 5.3: difference between "/usr/lib" and "/usr/ccs/lib"2011-04-07T16:23:07Z in response to JoseLuis01> JoseLuis01 wrote:
> Which library path should I choose to put in LIBPATH enviroment variable?
For production use, try really hard to not set LIBPATH, or you start opening a can of worms.
It should be the binaries (executables or shared objects) containing a libpath definition, where the bare minimum widely used seems to be "/usr/lib:/lib" (try "dump -H /lib/libc.a").
More specifically, it is up to the build system for that binaries to pass something like the "-blibpath:/usr/lib:/lib" linker flag (see ld man page).