Makefile adds dependency on $(LIBLTDL), which is valued "-lltdl"
authorClemens Lang <neverpanic@gmail.com>
Sat, 10 Mar 2012 01:30:26 +0000 (02:30 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 14 Mar 2012 06:44:47 +0000 (07:44 +0100)
When building on OS X, the collectd build failed, because the collectd target
has a dependency on "-lltdl", which is the value the variable $(LIBLTDL) has.
Obviously, this should be the file name instead. I am however not sure how to
specify the correct filename in this case.

Fixes GitHub issue #54.

Signed-off-by: Florian Forster <octo@collectd.org>
src/Makefile.am

index 0c427dc..fd85107 100644 (file)
@@ -85,7 +85,7 @@ endif
 
 if BUILD_WITH_OWN_LIBOCONFIG
 collectd_LDADD += $(LIBLTDL) liboconfig/liboconfig.la
-collectd_DEPENDENCIES += $(LIBLTDL) liboconfig/liboconfig.la
+collectd_DEPENDENCIES += liboconfig/liboconfig.la
 else
 collectd_LDADD += -loconfig
 endif