incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Black <abl...@roguewave.com>
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:
> 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 =

Mime
View raw message