On 2 Feb., 11:06, Peter Jeremy <[email protected]> wrote:
> On 2010-Feb-01 20:13:07 +0000, David Kirkby <[email protected]> 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.
>

Thanks for the info!

> 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.
>

I know.
But on OS X, there is a tool "install_name_tool", and it seems on
Linux (it's e.g. in Debian) the tool "chrpath", that both allow to
exchange exactly these paths encoded by "rpath" in binaries and
libraries. In the latter case, "only with shorter paths". Have you
heard of such a tool under Solaris?

Cheers,
Georg

> --
> Peter Jeremy
>
>  application_pgp-signature_part
> < 1 KBAnzeigenHerunterladen

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to