From b519f37ff250d8b77d64b16781b456a9e1837f95 Mon Sep 17 00:00:00 2001 From: John Marino Date: Sat, 24 Mar 2012 09:55:38 +0100 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index 9c8c0fef3d..5bb67156d0 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -378,7 +378,7 @@ sysvipc_enable="NO" # Load System V IPC primitives at startup (or NO). linux_enable="NO" # Linux binary compatibility loaded at startup (or NO). clear_tmp_enable="NO" # Clear /tmp at startup. ldconfig_insecure="NO" # Set to YES to disable ldconfig security checks -ldconfig_paths="/usr/lib /usr/lib/gcc* /usr/lib/compat /usr/pkg/lib /usr/local/lib" +ldconfig_paths="/usr/lib /usr/lib/compat /usr/pkg/lib /usr/local/lib" # shared library search paths kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure update_motd="YES" # update version info in /etc/motd (or NO) -- 2.41.0