move RPATH search after LD_LIBRARY_PATH search
authorRich Felker <dalias@aerifal.cx>
Fri, 2 Aug 2013 14:02:29 +0000 (10:02 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 2 Aug 2013 14:02:29 +0000 (10:02 -0400)
commit3e3753c1a8e047dc84f9db1dc26bb046cff457a6
tree3f90747be515f613e82ccb85c327da2f2693c8b6
parent78c6d30fd3bb13f5fc6e1ad42675fe5475a87641
move RPATH search after LD_LIBRARY_PATH search

this is the modern way, and the only way that makes any sense. glibc
has this complicated mechanism with RPATH and RUNPATH that controls
whether RPATH is processed before or after LD_LIBRARY_PATH, presumably
to support legacy binaries, but there is no compelling reason to
support this, and better behavior is obtained by just fixing the
search order.
src/ldso/dynlink.c