stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Black <>
Subject Re: [PATCH] Library path fix
Date Tue, 14 Nov 2006 00:40:27 GMT
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.

--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:
> Martin

	* 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


View raw message