From 109013bed73997fff52794660292db03b8188d64 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Tue, 7 Mar 2017 16:33:36 +0100 Subject: Yet another fix of the static linking on Windows. --- xs/Build.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xs') diff --git a/xs/Build.PL b/xs/Build.PL index 4af05600e..5d2b84ccc 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -9,7 +9,7 @@ use Module::Build::WithXSpp; my $cpp_guess = ExtUtils::CppGuess->new; my $mswin = $^O eq 'MSWin32'; -my $lib_ext = $ENV{SLIC3R_STATIC} ? ($mswin ? '.lib' : '.a') : ${$cpp_guess}{config}{lib_ext}; +my $lib_ext = $ENV{SLIC3R_STATIC} ? ($cpp_guess->is_msvc ? '.lib' : '.a') : ${$cpp_guess}{config}{lib_ext}; # Library paths to search for boost, thread building blocks and such. # On Windows, there is really no standard. On Unices, this is a bit better. -- cgit v1.2.3