summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Thill2010-08-14 23:40:04 +0000
committerNicolas Thill2010-08-14 23:40:04 +0000
commitd0e2e6f37f68a4ae4fab433b0c82ab03642d8760 (patch)
tree7e91849b25975ac75a4418e2189eb9cdde42026a
parentf1e35ecc5097f4c0a959e5484f666509561bd95b (diff)
downloadarchive-d0e2e6f37f68a4ae4fab433b0c82ab03642d8760.tar.gz
[packages] collectd: fix fp-layout on big-endian targets (closes: #7707)
SVN-Revision: 22653
-rw-r--r--utils/collectd/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile
index 69007d80d6..ff1ebf0465 100644
--- a/utils/collectd/Makefile
+++ b/utils/collectd/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=collectd
PKG_VERSION:=4.9.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://collectd.org/files/
@@ -145,7 +145,6 @@ CONFIGURE_ARGS+= \
--enable-daemon \
--enable-getifaddrs \
--with-nan-emulation \
- --with-fp-layout=nothing
CONFIGURE_VARS+= \
CFLAGS="$$$$CFLAGS $(FPIC)" \
@@ -167,6 +166,12 @@ ifneq ($(CONFIG_PACKAGE_collectd-mod-ascent),)
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/libxml2"
endif
+ifneq ($(CONFIG_BIG_ENDIAN),)
+ CONFIGURE_ARGS+= --with-fp-layout=endianflip
+else
+ CONFIGURE_ARGS+= --with-fp-layout=nothing
+endif
+
ifneq ($(CONFIG_PACKAGE_collectd-mod-postgresql),)
CONFIGURE_ARGS+= --with-libpq="$(STAGING_DIR)/usr/"
endif