Skip to content

Commit 2bf5035

Browse files
authored
Merge pull request #25 from rumblesan/osx-freeglut-fix
Make it possible to link against installed version of freeglut on OSX
2 parents f93564a + 6dbc0ce commit 2bf5035

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cbits/HsGLUT.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ hs_GLUT_getProcAddress(const char *name)
5050

5151
static const char* libNames[] = {
5252
#ifdef __APPLE__
53+
/* Try to use freeglut, checking the LD_LIBRARY_PATH */
54+
"libglut.dylib",
5355
/* Try public framework path first. */
5456
"/Library/Frameworks/GLUT.framework/GLUT",
5557
/* If the public path failed, try the system framework path. */

0 commit comments

Comments
 (0)