Author: Andreas Tille <tille@debian.org>, Nilesh Patra <nilesh@debian.org>
Description: Do not try to build removed tbb code copy but rather link to Debian packaged version
Forwarded: not-needed
Last-Update: Mon, 26 Nov 2018 16:10:58 +0100
--- a/src/Makevars.in
+++ b/src/Makevars.in
@@ -1,5 +1,6 @@
 
 PKG_CXXFLAGS = @CXX11STD@
+PKG_LIBS = -ltbb -ltbbmalloc
 
 # If TBB_ROOT is defined, use it.
 ifdef TBB_ROOT
@@ -27,10 +28,6 @@
 	PKG_CPPFLAGS = -I../inst/include
 endif
 
-ifdef TBB_LIB
-	PKG_LIBS = -Wl,-L,"$(TBB_LIB)" -Wl,-rpath,"$(TBB_LIB)" -ltbb -ltbbmalloc
-endif
-
 ifeq ($(OS), Windows_NT)
 
 	USE_TBB=Windows
@@ -156,17 +153,10 @@
 # NOTE: we do not want to clean ../inst/lib or ../inst/libs here,
 # as we may be writing to those locations in multiarch builds
 tbb-clean:
-	@rm -rf ../inst/include/tbb
 	@rm -rf ../inst/include/oneapi
-	@rm -rf ../inst/include/tbb_local
 	@rm -rf ../inst/include/serial
 
 clean: tbb-clean
-ifdef TBB_LIB
 	@echo "Nothing to clean for TBB."
-else
-	@(cd tbb/src; make clean)
-endif
-
 
 endif
