From 8e28bd36a24d2cd29ed3502ff201701a9029e0ec Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 16 Mar 2017 14:26:16 +0100 Subject: [PATCH] Link XS with -framework OpenGL on OSX. --- xs/Build.PL | 2 ++ 1 file changed, 2 insertions(+) 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); }