slic3r/slic3r-linker.patch

16 lines
548 B
Diff

diff -up Slic3r-1.3.0/xs/Build.PL.linker Slic3r-1.3.0/xs/Build.PL
--- Slic3r-1.3.0/xs/Build.PL.linker 2018-05-08 18:47:09.000000000 -0400
+++ Slic3r-1.3.0/xs/Build.PL 2018-06-25 10:48:55.421774896 -0400
@@ -30,6 +30,11 @@ push @cflags, qw(-std=c++11);
my @ldflags = ();
+if (defined $ENV{SYSTEM_LIBS}) {
+ my $syslibs = $ENV{SYSTEM_LIBS};
+ push @ldflags, split(' ', $syslibs);
+}
+
if ($linux && (defined $ENV{SLIC3R_STATIC} && $ENV{SLIC3R_STATIC})) {
push @ldflags, qw(-static-libgcc -static-libstdc++);
if ($ENV{TRAVIS}) {