]> OCCT Git - occt-wok.git/commitdiff
0023451: On Linux OCC links to release mode TBB leading to unspecified behavior
authorRoman Lygin <roman.lygin@gmail.com>
Mon, 18 Mar 2013 17:12:20 +0000 (21:12 +0400)
committerRoman Lygin <roman.lygin@gmail.com>
Fri, 22 Mar 2013 08:54:59 +0000 (12:54 +0400)
src/WOKTclLib/templates/template.ac

index a0fea72282537c1d7802c34b3c641c26a01e83f4..c9f0fc02994fa7a8095d74cfaaf5e00b55053e08 100644 (file)
@@ -768,7 +768,11 @@ else
        HAVE_TBB=no
      fi
      if test "x$tbb_lib" != "x"; then
-       CSF_TBB_LIB="-L$tbb_lib -ltbb -ltbbmalloc"
+       if test "x$enable_debug" = "xyes"; then
+        CSF_TBB_LIB="-L$tbb_lib -ltbb_debug -ltbbmalloc_debug"
+       else
+        CSF_TBB_LIB="-L$tbb_lib -ltbb -ltbbmalloc"
+       fi
      else
        HAVE_TBB=no
      fi