From a6e9e3ad98c9dbf36f401e385f595b0fbf7bfb17 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 4 Oct 2009 03:55:32 +0000 Subject: [PATCH] collectd: fix linker errors git-svn-id: svn://svn.openwrt.org/openwrt/packages@17846 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/collectd/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index 14599a8ea..9b81a6337 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -314,9 +314,10 @@ endif # exception: mod-rrdtool(1) needs rrdtool ifneq ($(CONFIG_PACKAGE_collectd-mod-rrdtool1),) PKG_CONFIGURE_OPTS += --with-rrdtool=$(wildcard $(BUILD_DIR)/rrdtool-1.0.*) - TARGET_LDFLAGS := -L$(wildcard $(BUILD_DIR)/rrdtool-1.0.*)/src/.libs -lz -lm $(TARGET_LDFLAGS) + TARGET_LDFLAGS := -L$(wildcard $(BUILD_DIR)/rrdtool-1.0.*)/src/.libs -lz $(TARGET_LDFLAGS) endif +TARGET_LDFLAGS += -lm MAKE_FLAGS += \ DESTDIR="$(PKG_INSTALL_DIR)" \