diff --git a/xs/Build.PL b/xs/Build.PL index 7d82a6eec..5ad97c854 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -305,6 +305,8 @@ if ($ENV{SLIC3R_GUI}) { } else { push @LIBS, qw(-lopengl32); } + } elsif ($^O eq 'darwin') { + push @LIBS, qw(-framework OpenGL); } else { push @LIBS, qw(-lGL -lGLU); }