Code

link iptables plugin against flags from pkg-config
authorMarc Fournier <marc.fournier@camptocamp.com>
Mon, 10 Mar 2014 20:28:36 +0000 (21:28 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 10 Mar 2014 20:28:36 +0000 (21:28 +0100)
This solves issue #326 for ubuntu versions >= 13.10

src/Makefile.am

index 71abeca93a71f04bf2a4ca96eb5c22af51def8fa..a16e423c169654f5e04b18c1978b0e26446e2706 100644 (file)
@@ -477,8 +477,8 @@ if BUILD_PLUGIN_IPTABLES
 pkglib_LTLIBRARIES += iptables.la
 iptables_la_SOURCES = iptables.c
 iptables_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBIPTC_CPPFLAGS)
-iptables_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBIPTC_LDFLAGS)
-iptables_la_LIBADD = -liptc
+iptables_la_LDFLAGS = -module -avoid-version
+iptables_la_LIBADD = $(BUILD_WITH_LIBIPTC_LDFLAGS)
 collectd_LDADD += "-dlopen" iptables.la
 collectd_DEPENDENCIES += iptables.la
 endif