|
@@ -13,6 +13,11 @@ OPENCV3_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
|
OPENCV3_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
|
|
|
|
+# Uses __atomic_fetch_add_4
|
|
|
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
+OPENCV3_CXXFLAGS += -latomic
|
|
|
+endif
|
|
|
+
|
|
|
# Fix c++11 build with missing std::exception_ptr
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_64735),y)
|
|
|
OPENCV3_CXXFLAGS += -DCV__EXCEPTION_PTR=0
|