I want to put my custom libraries in a separate folder. How do I configure
QNX to search in alternate directories for *.a and *.so files? I’m sure it’s
an enviroment variable, but where do I change the variable?
“Chris Rose” <chris.rose@viasat.com> wrote in message
news:a9hjn5$7qm$1@inn.qnx.com…
I want to put my custom libraries in a separate folder. How do I configure
QNX to search in alternate directories for *.a and *.so files? I’m sure
it’s
an enviroment variable, but where do I change the variable?
-L option to linker
The -L option works for statically linked libraries. What I really wanted to
know is how do I specify additional search paths for dynamically loaded
libraries?
“Mario Charest” <goto@nothingness.com> wrote in message
news:a9hlo2$9a2$1@inn.qnx.com…
“Chris Rose” <> chris.rose@viasat.com> > wrote in message
news:a9hjn5$7qm$> 1@inn.qnx.com> …
I want to put my custom libraries in a separate folder. How do I
configure
QNX to search in alternate directories for *.a and *.so files? I’m sure
it’s
an enviroment variable, but where do I change the variable?-L option to linker
\
“Chris Rose” <chris.rose@viasat.com> wrote in message
news:a9hpl0$c35$1@inn.qnx.com…
The -L option works for statically linked libraries. What I really wanted
to
know is how do I specify additional search paths for dynamically loaded
libraries?
Add your path to LD_LIBRARY_PATH environment variable.
“Mario Charest” <> goto@nothingness.com> > wrote in message
news:a9hlo2$9a2$> 1@inn.qnx.com> …“Chris Rose” <> chris.rose@viasat.com> > wrote in message
news:a9hjn5$7qm$> 1@inn.qnx.com> …
I want to put my custom libraries in a separate folder. How do I
configure
QNX to search in alternate directories for *.a and *.so files? I’m
sure
it’s
an enviroment variable, but where do I change the variable?-L option to linker
\
What file do I edit to add the LD_LIBRARY_PATH environment variable?
“Mario Charest” <goto@nothingness.com> wrote in message
news:a9hpna$c3e$1@inn.qnx.com…
“Chris Rose” <> chris.rose@viasat.com> > wrote in message
news:a9hpl0$c35$> 1@inn.qnx.com> …
The -L option works for statically linked libraries. What I really
wanted
to
know is how do I specify additional search paths for dynamically loaded
libraries?Add your path to LD_LIBRARY_PATH environment variable.
“Mario Charest” <> goto@nothingness.com> > wrote in message
news:a9hlo2$9a2$> 1@inn.qnx.com> …“Chris Rose” <> chris.rose@viasat.com> > wrote in message
news:a9hjn5$7qm$> 1@inn.qnx.com> …
I want to put my custom libraries in a separate folder. How do I
configure
QNX to search in alternate directories for *.a and *.so files? I’m
sure
it’s
an enviroment variable, but where do I change the variable?-L option to linker
\
“Chris Rose” <chris.rose@viasat.com> wrote in message
news:a9hthf$elu$1@inn.qnx.com…
What file do I edit to add the LD_LIBRARY_PATH environment variable?
I’d try:
/etc/rc.d/rc.local or /etc/profile
export LD_ LIBRARY_PATH=$(LD_LIBRARY_PATH):your path
“Mario Charest” <> goto@nothingness.com> > wrote in message
news:a9hpna$c3e$> 1@inn.qnx.com> …“Chris Rose” <> chris.rose@viasat.com> > wrote in message
news:a9hpl0$c35$> 1@inn.qnx.com> …
The -L option works for statically linked libraries. What I really
wanted
to
know is how do I specify additional search paths for dynamically
loaded
libraries?Add your path to LD_LIBRARY_PATH environment variable.
“Mario Charest” <> goto@nothingness.com> > wrote in message
news:a9hlo2$9a2$> 1@inn.qnx.com> …“Chris Rose” <> chris.rose@viasat.com> > wrote in message
news:a9hjn5$7qm$> 1@inn.qnx.com> …
I want to put my custom libraries in a separate folder. How do I
configure
QNX to search in alternate directories for *.a and *.so files? I’m
sure
it’s
an enviroment variable, but where do I change the variable?-L option to linker
\
<a9hlo2$9a2$1@inn.qnx.com>$B$N5-;v$K$*$$$F(B
goto@nothingness.com$B$5$s$O=q$-$^$7$?!#(B
I want to put my custom libraries in a separate folder. How do I configure
QNX to search in alternate directories for *.a and *.so files? I’m sure
it’s
an enviroment variable, but where do I change the variable?-L option to linker
And set LD_RUN_PATH environment to the dir, or set -Wl,-rpath=
when linking. (Mandatory but still-not-so-known standard procedure on ELF)
Unfortunately this won’t work on 6.1.0A (known but undocumented bug) so
additionaly add to LD_LIBRARY_PATH environment on exec.
Dunno if this is fixed in 6.2. (beta users?)
kabe