Topic
  • 1 reply
  • Latest Post - ‏2011-04-07T16:23:07Z by haubi
JoseLuis01
JoseLuis01
2 Posts

Pinned topic AIX 5.3: difference between "/usr/lib" and "/usr/ccs/lib"

‏2011-04-07T15:29:40Z |
Hi,

Which library path should I choose to put in LIBPATH enviroment variable?

Thanks in advance,
Jose Luis
Updated on 2011-04-07T16:23:07Z at 2011-04-07T16:23:07Z by haubi
  • haubi
    haubi
    37 Posts

    Re: AIX 5.3: difference between "/usr/lib" and "/usr/ccs/lib"

    ‏2011-04-07T16:23:07Z  
    > 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).

    HTH,
    /haubi/