[Buildroot] [PATCH 1/2] Makefile: use root-relative -f path for /sbin/ldconfig

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Oct 23 08:26:45 UTC 2015


Dear Bjørn Forsman,

On Fri, 23 Oct 2015 09:12:02 +0200, Bjørn Forsman wrote:

> If you want to completely remove use of (host) /sbin/ldconfig, that's fine too.
> 
> Just tell me what to do :-)

We need to completely remove the ldconfig stuff, since it simply cannot
work. However, there is at least one package (mysql) that installs
libraries in a non-standard location (/usr/lib/mysql) and relies on
ld.so.conf for the dynamic linker to find them. I believe we need to
fix MySQL so that it installs its libraries in /usr/lib, and then get
rid of all the ldconfig/ld.so.conf stuff.

Or, alternatively, see how to get it working with an init script which
runs ldconfig at boot time. But then you have to look at how uClibc and
musl handle this, and implement a solution that works for all three C
libraries.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list