diff --git a/xs/Build.PL b/xs/Build.PL index 5a10ac0..fb0f6a6 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -41,6 +41,7 @@ my $build = Module::Build::WithXSpp->new( Module::Build::WithXSpp 0.13 )}, extra_compiler_flags => \@cflags, + extra_linker_flags => [qw(-lpolyclipping)], # Provides extra C typemaps that are auto-merged extra_typemap_modules => { diff --git a/xs/src/ClipperUtils.hpp b/xs/src/ClipperUtils.hpp index 2ab3ff7..2058f82 100644 --- a/xs/src/ClipperUtils.hpp +++ b/xs/src/ClipperUtils.hpp @@ -2,7 +2,7 @@ #define slic3r_ClipperUtils_hpp_ #include -#include "clipper.hpp" +#include #include "ExPolygon.hpp" #include "Polygon.hpp" #include "Surface.hpp" diff --git a/xs/src/Geometry.cpp b/xs/src/Geometry.cpp index 0295d54..a8cae39 100644 --- a/xs/src/Geometry.cpp +++ b/xs/src/Geometry.cpp @@ -1,7 +1,7 @@ #include "Geometry.hpp" #include "Line.hpp" #include "PolylineCollection.hpp" -#include "clipper.hpp" +#include #include #include #include diff --git a/xs/xsp/Clipper.xsp b/xs/xsp/Clipper.xsp index 43a30a4..263c808 100644 --- a/xs/xsp/Clipper.xsp +++ b/xs/xsp/Clipper.xsp @@ -2,7 +2,7 @@ %{ #include -#include "clipper.hpp" +#include #include "ClipperUtils.hpp" %}