On Tue, 06 Dec 2011 at 10:32:01 +0100, vinc...@cojot.name wrote:
> I just checked my binaries and /usr/local/lib doesn't seem hard-coded:

Paths in the dynamic linker's default search path don't need to be hard-coded
into binaries; paths not in the default search path do. On GNU (glibc)
systems, the default search path is partly hard-coded, partly in
/etc/ld.so.conf and partly in the files in /etc/ld.so.conf.d/.

The way to get a path hard-coded into the binary on Linux would be to pass
"-rpath /opt/lib" to ld - Solaris probably has something equivalent?

(Or use GNU libtool, which knows how to do shared libraries on various
platforms, each weirder than the last... but restricts you to doing things
in a slightly strange way to accomodate as many of those weird platforms
as possible.)

    s
_______________________________________________
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Reply via email to