From 14ffa46809290fe1518dc193c4ca5d5c3c4229fe Mon Sep 17 00:00:00 2001 From: Roman Lygin Date: Mon, 18 Mar 2013 21:12:20 +0400 Subject: [PATCH] 0023451: On Linux OCC links to release mode TBB leading to unspecified behavior --- src/WOKTclLib/templates/template.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/WOKTclLib/templates/template.ac b/src/WOKTclLib/templates/template.ac index a0fea72..c9f0fc0 100644 --- a/src/WOKTclLib/templates/template.ac +++ b/src/WOKTclLib/templates/template.ac @@ -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 -- 2.39.5