Just a quick follow-up,

Upon further inspection it appears I -do- have hard-coded paths in my ioquake3 binaries:

root@ergoth:[~][547]# elfdump -d /usr/local/share/games/quake3/ioquake3.sparc 
|grep -i path
      [14]  RUNPATH           0xc51c              /usr/local/lib:/usr/sfw/lib
      [15]  RPATH             0xc51c              /usr/local/lib:/usr/sfw/lib

That's why (I think) the user had a problem running these with his libraries in a different location.. I'll try to see if I can find the time to rebuild the packages.

Regards,

On Tue, 6 Dec 2011, Simon McVittie wrote:

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