This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Strange Solaris non-problem
- From: John Love-Jensen <eljay at adobe dot com>
- To: murray <murray at geocom dot com dot au>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 30 Apr 2003 11:19:46 -0500
- Subject: Re: Strange Solaris non-problem
Hi Graeme,
> I have no complaints about the program working, but I don't understand
> what just happened. Could someone offer any comment? Have I left a
> problem here which might bite me later?
Which .so is used is dependent on your LD_LIBRARY_PATH when the application
is run.
If you want a specific path (absolute or relative) for your shared library
resolution, use the -rpath parameter in your build, using GNU ld.
There are a couple security concerns using a relative rpath. On a secure
machine, that shouldn't be a problem.
--Eljay