mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 07:11:59 +08:00
Merge pull request #3737 from alexrj/allow-unversioned-boost-libs
Permit boost libraries to not have the version # in their name
This commit is contained in:
commit
a7f1cd50ab
@ -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
|
||||
@ -123,7 +121,7 @@ if (!$ENV{SLIC3R_STATIC} && $have_boost) {
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user