aboutsummaryrefslogtreecommitdiff
path: root/package/opencv3/opencv3.mk
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2016-09-05 23:00:56 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-09-06 21:36:07 +0200
commit4904c4ce8ac8b605b2591df1c259f5ad70bed48f (patch)
tree7ac8319fbdbf7887c7802c807e222970dc37ca01 /package/opencv3/opencv3.mk
parent2bc1cc7cc182c61a430083b9132c6638caaf5632 (diff)
downloadbuildroot-4904c4ce8ac8b605b2591df1c259f5ad70bed48f.tar.gz
buildroot-4904c4ce8ac8b605b2591df1c259f5ad70bed48f.tar.bz2
package/opencv3: use BR2_TOOLCHAIN_HAS_LIBATOMIC
It uses __atomic_fetch_add_4 so libatomic must be pulled in if necessary. Fixes http://autobuild.buildroot.net/results/652/6521223b426c3cb4dfefab27bc6021900db6910e/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/opencv3/opencv3.mk')
-rw-r--r--package/opencv3/opencv3.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/opencv3/opencv3.mk b/package/opencv3/opencv3.mk
index 91cdfe6428..2529de9f4b 100644
--- a/package/opencv3/opencv3.mk
+++ b/package/opencv3/opencv3.mk
@@ -10,6 +10,11 @@ OPENCV3_INSTALL_STAGING = YES
OPENCV3_LICENSE = BSD-3c
OPENCV3_LICENSE_FILES = LICENSE
+# Uses __atomic_fetch_add_4
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+OPENCV3_CONF_OPTS += -DCMAKE_CXX_FLAGS="-latomic"
+endif
+
# OpenCV component options
OPENCV3_CONF_OPTS += \
-DBUILD_DOCS=OFF \