rrdtool: fix build without threads support
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 24 Sep 2013 11:35:49 +0000 (13:35 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 24 Sep 2013 11:35:49 +0000 (13:35 +0200)
Fixes http://autobuild.buildroot.net/results/f7a/f7ab00ddae121ccfc6d54f7eda8ea8ac6df359c2/

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/rrdtool/rrdtool.mk

index 354cff65c41e58d65237b77478c397774f3b0113..fe5b872d14aa1f641a0bd99802a4c8a2aa69e283 100644 (file)
@@ -15,7 +15,8 @@ RRDTOOL_INSTALL_STAGING = YES
 RRDTOOL_CONF_ENV = rd_cv_ieee_works=yes rd_cv_null_realloc=nope \
                        ac_cv_func_mmap_fixed_mapped=yes
 RRDTOOL_CONF_OPT = --disable-perl --disable-python --disable-ruby \
-                       --disable-tcl --program-transform-name=''
+                       --disable-tcl --program-transform-name='' \
+                       $(if $(BR2_TOOLCHAIN_HAS_THREADS),,--disable-pthread)
 RRDTOOL_MAKE = $(MAKE1)
 
 define RRDTOOL_REMOVE_EXAMPLES