libperl's ldopts include libaries and therefore should go in LIBS not LDFLAGS
[collectd.git] / src / Makefile.am
index 0bec7ab..23c3a3b 100644 (file)
@@ -891,6 +891,7 @@ perl_la_CFLAGS += -Wno-nonnull
 endif
 perl_la_LDFLAGS = -module -avoid-version \
                $(PERL_LDFLAGS)
+perl_la_LIBS = $(PERL_LIBS)
 collectd_LDADD += "-dlopen" perl.la
 collectd_DEPENDENCIES += perl.la
 endif