mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 18:29:05 +08:00
Set BOOST_LOG_DYN_LINK symbol when linking with dynamic boost libraries.
This commit is contained in:
parent
a870b69733
commit
56e87e3bdb
@ -119,13 +119,17 @@ if (defined $ENV{BOOST_LIBRARYDIR}) {
|
|||||||
my $have_boost = 0;
|
my $have_boost = 0;
|
||||||
my @boost_libraries = qw(system thread log); # we need these
|
my @boost_libraries = qw(system thread log); # we need these
|
||||||
|
|
||||||
# check without explicit lib path (works on Linux)
|
if (!$ENV{SLIC3R_STATIC}) {
|
||||||
if (!$ENV{SLIC3R_STATIC} && ! $mswin) {
|
# Dynamic linking of boost libraries.
|
||||||
|
push @cflags, qw(-BOOST_LOG_DYN_LINK);
|
||||||
|
if (! $mswin) {
|
||||||
|
# Check without explicit lib path (works on Linux and OSX).
|
||||||
$have_boost = 1
|
$have_boost = 1
|
||||||
if check_lib(
|
if check_lib(
|
||||||
lib => [ map "boost_${_}", @boost_libraries ],
|
lib => [ map "boost_${_}", @boost_libraries ],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($have_boost) {
|
if ($have_boost) {
|
||||||
# The boost library was detected by check_lib on Linux.
|
# The boost library was detected by check_lib on Linux.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user