summary refs log tree commit diff
path: root/elf/ldconfig.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-12 21:10:41 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-12 21:10:41 +0000
commit8ca91b369d1f8baebc55730c5dfb35a5919b5d0f (patch)
tree200829155c0580923f19abca79a7fbdc35051f30 /elf/ldconfig.c
parent0d655550deaaf5813c0b198bbc581164e80230d8 (diff)
downloadglibc-8ca91b369d1f8baebc55730c5dfb35a5919b5d0f.tar.gz
glibc-8ca91b369d1f8baebc55730c5dfb35a5919b5d0f.tar.xz
glibc-8ca91b369d1f8baebc55730c5dfb35a5919b5d0f.zip
Update.
2000-07-12  Andreas Jaeger  <aj@suse.de>

	* elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
	compiler.
	(CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
	(CFLAGS-dl-cache.c): Likewise.
	(CFLAGS-ldconfig.c): Added, passes directory locations.

	* sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
	locate cache.
	* elf/ldconfig.c (LD_SO_CONF): Likewise.
	(main): Use configured LIBDIR and SLIBDIR.

2000-07-11  Jakub Jelinek  <jakub@redhat.com>

	* math/bits/cmathcalls.h (cimag): Add __THROW.
	(creal, conj): Likewise.
	* wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
	by negative value.
Diffstat (limited to 'elf/ldconfig.c')
-rw-r--r--elf/ldconfig.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 4ee9763c79..99fe8a93d2 100644
--- a/elf/ldconfig.c
+++ b/elf/ldconfig.c
@@ -41,7 +41,7 @@
 #include "dl-procinfo.h"
 
 #ifndef LD_SO_CONF
-# define LD_SO_CONF "/etc/ld.so.conf"
+# define LD_SO_CONF SYSCONFDIR "/ld.so.conf"
 #endif
 
 /* Get libc version number.  */
@@ -152,7 +152,7 @@ static int
 is_hwcap (const char *name)
 {
   int hwcap_idx = _dl_string_hwcap (name);
-  
+
   if (hwcap_idx != -1 && ((1 << hwcap_idx) & HWCAP_IMPORTANT))
     return 1;
   return 0;
@@ -802,8 +802,9 @@ main (int argc, char **argv)
   if (!opt_only_cline)
     {
       /* Always add the standard search paths.  */
-      add_dir ("/lib");
-      add_dir ("/usr/lib");
+      add_dir (SLIBDIR);
+      if (strcmp (SLIBDIR, LIBDIR))
+	add_dir (LIBDIR);
 
       parse_conf (config_file);
     }