title: ldconfig includes libraries from default path also when i have a customized ld-<me>.so.conf
body: <p>I have cross compiled libraries and a linux loader.
  I have placed a custom ld-.so.conf under /etc , The conf file has a path that contains all the cross compiled library and the loader.</p>
  
  <p>But when i run ldconfig,</p>
  
  <p>ldconfig -C /etc/ld-.so.cache -f /etc/ld-.so.conf</p>
  
  <p>All the system libraries and their paths are present in the cache file.
  I need the cache file generated to contain only my cross compiled libraries.</p>
  
  <p>Strace of ldconfig operation is as below:</p>
  
  <blockquote>
    <p>strace /opt/me/ldconfig -C /etc/ld-me.so.cache -f /etc/ld-me.so.conf
    execve("/opt/me/ldconfig", ["/opt/me/ldc"..., "-C",
    "/etc/ld-me.so.cache", "-f", "/etc/ld-me.so.conf"], [/* 38 vars */]) =
    0</p>
    
    <p>uname({sys="Linux", node="ip-172-31-32-236", ...}) = 0 brk(0)<br>
    = 0x10c1000 brk(0x10c2180)                          = 0x10c2180 arch_prctl(ARCH_SET_FS, 0x10c1860)      = 0 brk(0x10e3180)<br>
    = 0x10e3180 brk(0x10e4000)                          = 0x10e4000 open("/usr/lib/locale/locale-archive", O_RDONLY) = 3 fstat(3,
    {st_mode=S_IFREG|0644, st_size=99154480, ...}) = 0 mmap(NULL,
    99154480, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f46155a4000 close(3)<br>
    = 0 open("/etc/ld-me.so.conf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0640, st_size=25, ...}) = 0 mmap(NULL, 4096,
    PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
    0x7f46155a3000 read(3, "/opt/me/lib\n", 4096) = 25 stat("/opt/me/lib",
    {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 read(3, "", 4096)<br>
    = 0 close(3)                                = 0 munmap(0x7f46155a3000, 4096)            = 0 stat("/lib", {st_mode=S_IFDIR|0555, st_size=4096,
    ...}) = 0 stat("/lib64", {st_mode=S_IFDIR|0555, st_size=12288, ...}) =
    0 stat("/usr/lib", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
    stat("/usr/lib64", {st_mode=S_IFDIR|0555, st_size=12288, ...}) = 0
    open("/opt/me/lib", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3</p>
  </blockquote>
  
  <p>Can anybody tell me why system libraries are getting added ?</p>