[PATCH 2/2] Add uuid to the linker flags if using built LIBBLKID

Sebastian Andrzej Siewior
2012-02-24T17:15:06Z

|ld: warning: libuuid.so.1, needed by ../libblkid/src/.libs/libblkid.so, not found (try using -rpath or -rpath-link)
|../libblkid/src/.libs/libblkid.so: undefined reference to `uuid_unparse@UUID_1.0'

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
config/include-Makefile.am | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/config/include-Makefile.am b/config/include-Makefile.am
index 29760d4..895d4bc 100644
--- a/config/include-Makefile.am
+++ b/config/include-Makefile.am
@@ -31,6 +31,9 @@ ul_libuuid_la = $(top_builddir)/libuuid/src/libuuid.la
$(ul_libuuid_la):
$(MAKE) -C $(ul_libuuid_builddir)

+if BUILD_LIBBLKID
+ ul_libblkid_la += $(ul_libuuid_la)
+endif

# mount
ul_libmount_srcdir = $(top_srcdir)/libmount/src
--
1.7.9