]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Only move shared libraries to /lib if they exists
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 12 Jun 2014 20:10:27 +0000 (22:10 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Jun 2014 12:53:09 +0000 (14:53 +0200)
commit6e90f2b479ed03f48e429bb7164fc7e9f402e1de
tree9bca226447acc21481d3167f37803c98ea02d052
parent9123621450b4e16a3a5e3e2c94692d41c6b8e856
Only move shared libraries to /lib if they exists

In several Makemodule.am, there is a install-exec-hook-<library>
target whose role is to move the shared library from /usr/lib to /lib,
while keeping a symbolic link /usr/lib/libuuid.so ->
../../lib/<library>.so.<version>.

However, when util-linux is built with --enable-static
--disable-shared (as is needed on noMMU platforms that don't support
shared libraries), no <library>.so is built, but the
install-exec-hook-libuuid creates an invalid /usr/lib/<library>.so
symbolic link, pointing to ../../lib (yes, the directory). This causes
troubles later one when other libraries/programs are compiled with
-l<library>, as gcc thinks a shared library is available because
there's a file named /usr/lib/<library>.so.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
libblkid/src/Makemodule.am
libmount/src/Makemodule.am
libuuid/src/Makemodule.am