This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
LD_LIBRARY_PATH & LD_RUN_PATH
- From: "Brunda Sathi" <bsathi at telcordia dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 17 Dec 2002 09:54:08 -0500
- Subject: LD_LIBRARY_PATH & LD_RUN_PATH
I am trying link to standard Oracle and C libraries by pointing to
/usr/home/oracle/precomp/lib. I am able to link and run my executable only
if I set -L/usr/home/oracle/precomp/lib and -R/usr/home/oracle/precomp/lib
in my makefile while linking using ld command.
If I remove -L and -R options, eventhough I have set
export LD_LIBARY_PATH=.:/usr/home/oracle/precomp/lib
export LD_RUN_PATH=.:/usr/home/oracle/precomp/lib
in my .profile, I am unable to link my executable to Oracle libraries. I
did check whether environment variables are set or not, using env command.
We are using Solaris 8 with GCC 3.2 compiler.
For some reason "ld" command is not looking at LD_LIBRARY_PATH and
LD_RUN_PATH settings. Is there a problem with my settings?
Brunda