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 Fri, 17 Nov 2006 21:03:35 GMT
Andrew Black wrote:
[...]
> 
> I've tested on Linux with GCC and ICC using the '-Wl,-R$(LIBDIR)' switch 
> to the compiler, and the desired behavior in the resulting executables 
> is obtained.  I'll check the sunpro patch in shortly.  I intend to post 
> a follow up patch at some point to make this same change for other 
> compilers.

Greetings all.

Attached is the follow-up patch.  Unfortunately, there are a few gaps in 
it.  One set of gaps is that it doesn't add the appropriate switch to 
the como.config, eccp.config, and reliant_cds.config files.  Another set 
of gaps is that compilers haven't been tested off of their 'home' 
platform (Sunpro on Solaris, GCC and ICC on Linux, and so on).  Most 
linkers use -R, but HPUX uses +b, Compaq and IRIX use -rpath, and AIX 
requires -bsrv4 prior to -R.

--Andrew Black

Log:
	* makefile.rules (%.out): Remove runtime alterations of $LD_LIBRARY_PATH.
	(run runall run_all): Ditto.
	* sunpro.config (LDFLAGS): Remove redundant -L$(LIBDIR) switch.  Switch 
is added if needed in makefile.common.
	(MULTI_LDFLAGS_POSIX, MULTI_LDFLAGS_SOLARIS): Use $(LIBPTHREAD) for 
MULTI_LDFLAGS_POSIX and $(LIBTHREAD) for MULTI_LDFLAGS_SOLARIS.  Had 
been reversed at some point by mistake.
	* acc.config (LDFLAGS): Remove redundant -L$(LIBDIR) switch.  Switch is 
added if needed in makefile.common.
	(SHARED_LDFLAGS): Add rpath switch to include $(LIBDIR) in ld search 
path of executables.
	* gcc.config (SHARED_LDFLAGS): Ditto.
	* icc.config (SHARED_LDFLAGS): Ditto.
	* mipspro.config (LDFLAGS): Remove redundant -L$(LIBDIR) switch. 
Switch is added if needed in makefile.common.
	(SHARED_LDFLAGS): Add rpath switch to include $(LIBDIR) in ld search 
path of executables.
	* osf_cxx.config (SHARED_LDFLAGS): Ditto.
	* vacpp.config (SHARED_LDFLAGS): Ditto.

Mime
View raw message