defaults: remove /usr/lib/gcc* from ldconfig search path
authorJohn Marino <draco@marino.st>
Sat, 24 Mar 2012 08:55:38 +0000 (09:55 +0100)
committerJohn Marino <draco@marino.st>
Sat, 24 Mar 2012 18:20:39 +0000 (19:20 +0100)
commitb519f37ff250d8b77d64b16781b456a9e1837f95
tree0258b1a657a4824ef7b57cedad6fb078932d05dc
parent43add724990da155c21ef4a0893f4ebc2c36eb05
defaults: remove /usr/lib/gcc* from ldconfig search path

It is not necessary for ldconfig to add /usr/lib/gcc44 and /usr/lib/gcc41
directories to the default library search path.  Every binary built with
gcc41 and gcc44 embeds these paths into the DT_RPATH dynamic tag which
tells the runtime linker to look their first.  In effect, this means these
paths are potentially searched multiple times: once due to the rpath and
again due to the ldconfig hints file.  Let's do away will the redundant,
always-fails check here.

Another reason is that the gcc libraries have different versions of the
same libraries.  Surely the gcc41 version isn't preferred over the gcc44
version, but it gets searched first.  Again, let rpath take care of this
for gcc.

To update the rc.conf defaults, "make upgrade" after building world is
required.
etc/defaults/rc.conf