Fix ldconfig call in target-finalize
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 30 Aug 2010 20:52:18 +0000 (22:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 30 Aug 2010 21:14:20 +0000 (23:14 +0200)
commit4ccde7fabbeb41472a0e662be4bc60707e099a02
treee1b14ce1d4d5c21c684de9550096a22d5a1b5a1d
parent4973632207fd496199298191ada01c8c8ec2bee7
Fix ldconfig call in target-finalize

Recent versions of ldconfig require the directory /var/lib/ldconfig,
otherwise they bail out with an error. Moreover, having a
/etc/ld.so.conf file also avoids a warning.

In addition to this, we remove the redirection of stderr, so that
errors remain visible to the user.

Thanks to Baruch Siach, Andy Gibbs and Darcy Watkins for investigating
the issue and proposing solutions.

This fixes the build on recent distributions such as Fedora 13 or
Gentoo.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile