From 32b042830359bdc4ae4cbe13c172e2e85f8b2a66 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 7 Mar 2017 14:50:32 +0100 Subject: [PATCH] Yet another fix of a static TBB linkage. --- xs/Build.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/Build.PL b/xs/Build.PL index 5d44ba887..4af05600e 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -271,7 +271,8 @@ if ($have_tbb) { } push @INC, (map " -I$_", @tbb_include); # TODO: only use the one related to the chosen lib path if ($ENV{SLIC3R_STATIC} || $cpp_guess->is_msvc) { - push @LIBS, map "${path}/${_}_static${lib_ext}", @tbb_libraries; + my $lib_prefix = $cpp_guess->is_msvc ? '' : 'lib'; + push @LIBS, map "${path}/${lib_prefix}${_}_static${lib_ext}", @tbb_libraries; } else { push @LIBS, " -L$path", (map " -l$_$suffix", @tbb_libraries); }