rpath

how does/will the rpath is qnx6 work?
what is the lib search sequence?
is it LD_LIBRARY_PATH, rpath, default (/lib, etc) ?
or is it rpath, LD_LIBRARY_PATH, default?

on solaris, there is no /etc/ld.so.conf (just like qnx),
but during the link, if there is no rpath, it will automatically
add whatever path for -L into rpath. This makes it
possible to run the executable, without relying on LD_LIBRARY_PATH

does qnx do that also?

frank

It supposed to, but afaik it did not work in 6.1 and should be fixed in 6.2.

<fliu@bb.vipstage.com> wrote in message news:aac2s4$o5h$1@inn.qnx.com

how does/will the rpath is qnx6 work?
what is the lib search sequence?
is it LD_LIBRARY_PATH, rpath, default (/lib, etc) ?
or is it rpath, LD_LIBRARY_PATH, default?

on solaris, there is no /etc/ld.so.conf (just like qnx),
but during the link, if there is no rpath, it will automatically
add whatever path for -L into rpath. This makes it
possible to run the executable, without relying on LD_LIBRARY_PATH

does qnx do that also?

frank

or is it rpath, LD_LIBRARY_PATH, default?

This one, but rpath wasn’t searched prior to 6.2


cburgess@qnx.com

Colin Burgess <cburgess@qnx.com> wrote:

or is it rpath, LD_LIBRARY_PATH, default?

This one, but rpath wasn’t searched prior to 6.2

will the linker automatically add -L path to the rpath like
solaris does?

thanks!
frank

fliu@bb.vipstage.com wrote:

Colin Burgess <> cburgess@qnx.com> > wrote:
or is it rpath, LD_LIBRARY_PATH, default?

This one, but rpath wasn’t searched prior to 6.2

will the linker automatically add -L path to the rpath like
solaris does?

No.


cburgess@qnx.com