Bug 10286

Summary: 64-bit ldconfig does not load from /usr/local/lib
Product: uClibc Reporter: john.frankish
Component: Shared Library SupportAssignee: unassigned
Status: NEW ---    
Severity: normal CC: uclibc-cvs
Priority: P5    
Version: 0.9.33.2   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: patch for uClibc ldconfig to work with glibc

Description john.frankish 2017-09-01 09:21:05 UTC
Using uClibc-0.9.33.2 - compiling 32-bit works as expected.

Compiling 64-bit, uClibc ldconfig will not load libs from /usr/local/lib, even though it is present in /etc/ld.so.conf

In addition, "ldconfig -p" does not seem to work correctly: 

$ ldconfig -p | tail -2
        libEGL.so (unknown) => /usr/local/lib/libEGL.so
        ld-linux-x86-64.so.2 (unknown) => /lib/ld-linux-x86-64.so.2

..whereas glibc ldconfig gives:

$ ldconfig -p | tail -2
        libEGL.so (libc6,x86-64) => /usr/local/lib/libEGL.so
        ld-linux-x86-64.so.2 (ELF,x86-64) => /lib/ld-linux-x86-64.so.2
Comment 1 john.frankish 2017-09-11 10:40:22 UTC
Created attachment 7226 [details]
patch for uClibc ldconfig to work with glibc

I should have mentioned that the above refers to using uClibc ldconfig with glibc