From 85e4e1657819d90eb17565e151592f5016380d9a Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 4 Mar 2017 16:38:00 -0800 Subject: [PATCH] Permit boost libraries to not have the version # in their name --- xs/Build.PL | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xs/Build.PL b/xs/Build.PL index c6648d928..3c4d776b9 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -98,11 +98,9 @@ if (defined $ENV{BOOST_LIBRARYDIR}) { qw(/opt/local/lib /usr/local/lib /opt/lib /usr/lib /lib); } } - # In order to generate the -l switches we need to know how Boost libraries are named my $have_boost = 0; my @boost_libraries = qw(system thread filesystem); # we need these - # check without explicit lib path (works on Linux) if (! $mswin) { $have_boost = 1 @@ -122,8 +120,8 @@ if (!$ENV{SLIC3R_STATIC} && $have_boost) { # Try to find the boost system library. my @files = glob "$path/${lib_prefix}system*$lib_ext"; next if !@files; - - if ($files[0] =~ /${lib_prefix}system([^.]+)$lib_ext$/) { + + if ($files[0] =~ /${lib_prefix}system([^.]*)$lib_ext$/) { # Suffix contains the version number, the build type etc. my $suffix = $1; # Verify existence of all required boost libraries at $path.