gcc 44: Change shared library search order (embedded rpath)
authorJohn Marino <draco@marino.st>
Thu, 12 May 2011 05:57:56 +0000 (07:57 +0200)
committerJohn Marino <draco@marino.st>
Sat, 14 May 2011 07:55:48 +0000 (09:55 +0200)
commite42b0192f1e7ce6df0aa461075bde4978fa72adc
treeb2ad00afd8e6c0ac8b59d3f7a01e1a269b30c0c2
parentf97864e99208386fb3d2a7fffbe99445ce4abbe7
gcc 44: Change shared library search order (embedded rpath)

GCC 4.4.x has always created shared libraries with embedded rpath of
/usr/lib/gcc44:/usr/lib.  There are only two shared libraries in
/usr/lib/gcc44 which are stdc++ and obj-c.  There are 73 shared libraries
at /usr/lib, including the c library.  Reversing the rpath order will
cause many more library searchs to be successful on the first hit.

When searching for a library created by pkgsrc, there is no difference.
In that case, /usr/pkg/lib becomes the third directory in the search
path and relative order of the first two is irrelevant as both fail.
gnu/usr.bin/cc44/cc_prep/config/dragonfly-native.h