Which library path should I choose to put in LIBPATH enviroment variable?
Thanks in advance,
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 Posts
Re: AIX 5.3: difference between "/usr/lib" and "/usr/ccs/lib"2011-04-07T16:23:07ZThis is the accepted answer. This is the accepted answer.> 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).