summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2013-05-14 01:57:11 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-14 22:03:52 +0200
commit5fa49a6c0f916d0b98cfdc8c09db25982f34f373 (patch)
tree4c1aa9d1f9a5111ef6fe06a96dc3455a3ac4eea4
parent9b273ea860504666cf204eb475421e21cbcac639 (diff)
downloadbuildroot-novena-5fa49a6c0f916d0b98cfdc8c09db25982f34f373.tar.gz
buildroot-novena-5fa49a6c0f916d0b98cfdc8c09db25982f34f373.zip
cairo: fix build when toolchain has no thread support
Fixes the build failure visible at http://autobuild.buildroot.net/results/d49/d491de5a774592929a59f3bfd0b1fd8cbc089ac0 Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/cairo/cairo.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk
index 83c82c03c..203dbbe80 100644
--- a/package/cairo/cairo.mk
+++ b/package/cairo/cairo.mk
@@ -36,6 +36,10 @@ CAIRO_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \
ac_cv_func_working_mktime=yes jm_cv_func_working_re_compile_pattern=yes \
ac_use_included_regex=no gl_cv_c_restrict=no
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
+ CAIRO_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -DCAIRO_NO_MUTEX=1"
+endif
+
CAIRO_CONF_OPT = \
--enable-trace=no \
--enable-interpreter=no