aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2018-12-04 22:15:36 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-06 21:44:43 +0100
commitbd2dc67cb939c611ebf0ddfa63a014fe32e8ed06 (patch)
treebec6c107a526291d604c59abd6df107bd6c722f3
parentd935f001abbc8e414c72593f673530f1a481b249 (diff)
downloadbuildroot-bd2dc67cb939c611ebf0ddfa63a014fe32e8ed06.tar.gz
buildroot-bd2dc67cb939c611ebf0ddfa63a014fe32e8ed06.tar.bz2
package/civetweb: fix build without sync
If BR2_TOOLCHAIN_HAS_SYNC_4 is not set, define -DNO_ATOMICS=1 to fallback on lock Fixes: - http://autobuild.buildroot.org/results/7b3bc71d64aedf617dde35798099e16d7ae46713 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Thomas: invert condition.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/civetweb/civetweb.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/civetweb/civetweb.mk b/package/civetweb/civetweb.mk
index 4c3c443db7..fe1cdd5675 100644
--- a/package/civetweb/civetweb.mk
+++ b/package/civetweb/civetweb.mk
@@ -21,6 +21,10 @@ CIVETWEB_INSTALL_OPTS = \
HTMLDIR="$(TARGET_DIR)$(CIVETWEB_HTMLDIR)" \
SYSCONFDIR="$(TARGET_DIR)$(CIVETWEB_SYSCONFDIR)"
+ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_4),)
+CIVETWEB_COPT += -DNO_ATOMICS=1
+endif
+
ifeq ($(BR2_PACKAGE_CIVETWEB_WITH_LUA),y)
CIVETWEB_CONF_OPTS += WITH_LUA=1
CIVETWEB_LIBS += -ldl