mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
package/opencv3: link with libatomic if needed
Restore the atomic workaround that was wrongly removed when bumping to version 3.4.9 in commitf6fb2cae06as it seems that opencv3 still needs help to detect atomic library Fixes: - http://autobuild.buildroot.org/results/9162b29725f8d9b891eb74fcb8078f211140a841 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commitdd69967123) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
af6c670a78
commit
ee8023f8d8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user