Wind River Support Network


LIN6-9329 : Disabling LDCONFIG does not work

Created: Jan 26, 2015    Updated: Dec 3, 2018
Resolved Date: Jun 17, 2015
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config


The following two issues have been observed with ldconfig:

The --enable-ldconfig=no option to configure seems to be ignored and the resulting local.conf file always has

One can trace the problem to the following bit of code in the configure script:

# Process ENABLE_RECONFIG or --enable-ldconfig
echo "# Enable ldconfig" >>$local_conf
if [ X$ENABLE_RECONFIG != X0 -o X"$enable_ldconfig" = Xyes ] ; then
        echo "USE_LDCONFIG = \"1\"" >>$local_conf
        echo "USE_LDCONFIG = \"0\"" >>$local_conf
echo "" >>$local_conf

As the $ENABLE_RECONFIG seems to be unrelated to --enable-ldconfig and is not set it always passes, whatever the value of $enable_ldconfig.

After manually setting USE_LDCONFIG = "0"  in local.conf there is still a problem. Building the platform project, I noticed that /etc/ is still created, when it should not because ldconfig is not called upon library installation and so the cache will become unsynced after a lib is updated with a different minor version. So the cache should not be created during image creation or should be removed at the end when USE_LDCONFIG is "0".

$ENABLE_RECONFIG does not seem to be set anywhere in the script, nor the calling configure script within the wrlinux-6 install, so this variable does not do anything.
What --enable-reconfig sets is $enable_reconfig, but that is not tested in the code handling the USE_LDCONFIG setting.

Steps to Reproduce

configure --enable-board=qemux86 --enable-rootfs=glibc_small --enable-kernel=standard --enable-reconfig=yes --enable-ldconfig=no --with-rcpl-version=0014

$ grep LDCONFIG local.conf

Other Downloads

Live chat