packages/utils/collectd: fix detection of kernel headers for libiptc (#4233)
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 3 Dec 2008 20:45:44 +0000 (20:45 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 3 Dec 2008 20:45:44 +0000 (20:45 +0000)
SVN-Revision: 13501

utils/collectd/Makefile

index de969dc..8ae8d1d 100644 (file)
@@ -20,6 +20,7 @@ PKG_FIXUP=libtool
 PKG_BUILD_DEPENDS:=+libxml2 +libnetsnmp +libcurl +librrd1
 
 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/kernel.mk
 
 define Package/collectd/common_info
   SECTION:=utils
@@ -281,6 +282,7 @@ PKG_CONFIGURE_OPTS:= \
 
 CONFIGURE_VARS+= \
        CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2 $$$$CPPFLAGS" \
+       KERNEL_DIR="$(LINUX_DIR)"
 
 # list of permanently disabled plugins
 disabled_plugins := apple_sensors battery cpufreq entropy hddtemp ipmi ipvs libvirt mbmon memcached \