openscenegraph: use gcc atomic builtins to make cmake happy
authorKoen Kooi <koen@openembedded.org>
Fri, 10 Sep 2010 06:44:58 +0000 (08:44 +0200)
committerKoen Kooi <koen@openembedded.org>
Fri, 10 Sep 2010 06:44:58 +0000 (08:44 +0200)
recipes/opencv/openscenegraph_2.9.7.bb

index e5c151e..4c07b04 100644 (file)
@@ -15,6 +15,10 @@ SRC_URI[osg.sha256sum] = "ae0436a854b97a9efb7fe2c8a38630dab5182b1ea23b984ea0ea17
 
 S = "${WORKDIR}/OpenSceneGraph-${PV}"
 
+# choose between
+# _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
+# _OPENTHREADS_ATOMIC_USE_MUTEX
+
 # From http://www.openscenegraph.org/projects/osg/wiki/Community/OpenGL-ES
 EXTRA_OECMAKE = " -DCMAKE_BUILD_TYPE=Release \
                   -DOSG_GLU_AVAILABLE=OFF \
@@ -32,6 +36,7 @@ EXTRA_OECMAKE = " -DCMAKE_BUILD_TYPE=Release \
                   -DOSG_GL_FIXED_FUNCTION_AVAILABLE=OFF \
                   -DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF \
                   -DPOPPLER_HAS_CAIRO_EXITCODE=0 \
+                  -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS=1 \
                 "
 
 TARGET_CC_ARCH += "-D__STDC_CONSTANT_MACROS"