Andrew Black wrote: > Greetings all. > > According to the thread from the Sun Studio C++ forum, it is recommended > that that reliance on the LD_LIBRARY_PATH variables be avoided. Rather, > it is recommended that such references be added to executables using > the RPATH setting. > > To this end, a revised patch and ChangeLog have been included below that > attempt to resolve this issue in the recommended manner. Cool! Have you checked to make sure the -R option works on Linux? If so, go ahead and commit it. Otherwise let's either guard the change for that OS or remove it. Thanks Martin > > --Andrew Black > > Martin Sebor wrote: > >> Since the Sun C++ user manual doesn't explain which variable >> is set in a typical installation of the compiler I posted the >> question below to the Sun Studio C++ forum to help us decide >> how to proceed: >> http://forum.sun.com/jive/thread.jspa?threadID=111021 >> >> Martin > > > ChangeLog: > * sunpro.config (SHARED_LDFLAGS): Add -R$(LIBDIR) switch so > $(LIBDIR) is included in the runtime library search path of linked > executables. > > Index: etc/config/sunpro.config > =================================================================== > --- etc/config/sunpro.config (revision 474551) > +++ etc/config/sunpro.config (working copy) > @@ -35,7 +35,7 @@ > # shared/static library options > SHARED_CXXFLAGS = > SHARED_CPPFLAGS = > -SHARED_LDFLAGS = > +SHARED_LDFLAGS = -R$(LIBDIR) > > STATIC_CXXFLAGS = > STATIC_CPPFLAGS =