This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]