collectd: fix 5.7.1 compilation with encrypted network
authorHannu Nyman <hannu.nyman@iki.fi>
Thu, 26 Jan 2017 11:28:22 +0000 (13:28 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Mon, 6 Feb 2017 09:32:38 +0000 (11:32 +0200)
The encrypted network feature seems to have changed between 5.5.3 and 5.7.1.
Adjust Makefile to enable compilation with that feature.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
utils/collectd/Makefile

index f5add8ecaa5cc4be92004d26972a44f7476a51e2..feae2692644769b74674918d8e58bf1b579a57eb 100644 (file)
@@ -182,7 +182,7 @@ endef
 
 define Package/collectd
 $(call Package/collectd/Default)
-  DEPENDS:= +libpthread +zlib +libltdl +libip4tc
+  DEPENDS:= +libpthread +zlib +libltdl +libip4tc +PACKAGE_COLLECTD_ENCRYPTED_NETWORK:libgcrypt
   MENU:=1
 endef
 
@@ -214,7 +214,9 @@ CONFIGURE_ARGS+= \
 
 ifneq ($(CONFIG_PACKAGE_COLLECTD_ENCRYPTED_NETWORK),)
 CONFIGURE_ARGS+= \
-       --with-libgcrypt=$(STAGING_DIR)/include
+       --with-libgcrypt=$(STAGING_DIR)/usr
+CONFIGURE_VARS+= \
+       LDFLAGS="$$$$LDFLAGS -lgcrypt"
 else
 CONFIGURE_ARGS+= \
        --without-libgcrypt