On 2010-Feb-01 20:13:07 +0000, David Kirkby <david.kir...@onetel.net> wrote: >$ cc -flags > >shows as options for the Sun compiler: > > >-R<dir[:dir]> Build runtime search path list into executable > >Actually building a gcc which will search at a specified place seems >next to impossible on Solaris. The GCC developers will not add an >option which allows the location of the libraries to be hard-coded. It >is not a problem if you install in /usr/local, That's a pain if you >don't have root access, or want to keep sepparate copies of gcc >around.
The generic way of specifying rpath (using gcc or Sun cc driver) with the Sun linker is '-Wl,-R,dir:dir' Normally, the GNU linker (from binutils) would use '-Wl,-rpath,dir:dir' but I'm not sure if the Sun target changes this for Sun cc compatibility. You should also be able to change the default specs file (what is spat out by 'gcc -dumpspecs') to make gcc behave as desired. Unfortunately, rpath is not a general solution for shared libraries included in Sage because the paths would then be fixed at link time - which wouldn't all the Sage package to be arbitrarily relocated. -- Peter Jeremy
pgp53c8GbFqVS.pgp
Description: PGP signature