File: use-extra-libraries

package info (click to toggle)
haskell-glut 2.7.0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,804 kB
  • ctags: 14
  • sloc: haskell: 12,054; ansic: 98; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 920 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: haskell-glut/GLUT.cabal
===================================================================
--- haskell-glut.orig/GLUT.cabal	2016-05-12 12:47:38.000000000 -0400
+++ haskell-glut/GLUT.cabal	2017-05-06 16:55:16.164611101 -0400
@@ -103,6 +103,7 @@
   else
     cpp-options: "-DCALLCONV=ccall"
     cc-options: "-DUSE_DLSYM"
+    extra-libraries: glut
 
 executable BOGLGP01-OnYourOwn1
   if !flag(BuildExamples)
Index: haskell-glut/cbits/HsGLUT.c
===================================================================
--- haskell-glut.orig/cbits/HsGLUT.c	2016-05-12 12:47:38.000000000 -0400
+++ haskell-glut/cbits/HsGLUT.c	2017-05-06 16:56:30.898637798 -0400
@@ -66,7 +66,7 @@
       handle = dlopen("/System/Library/Frameworks/GLUT.framework/GLUT", RTLD_LAZY | RTLD_GLOBAL);
     }
 #else
-    handle = dlopen("libglut.so", RTLD_LAZY | RTLD_GLOBAL);
+    handle = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL);
 #endif
   }