File: use-extra-libraries

package info (click to toggle)
haskell-glut 2.7.0.16-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,844 kB
  • sloc: haskell: 12,054; ansic: 105; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 680 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: b/GLUT.cabal
===================================================================
--- a/GLUT.cabal
+++ b/GLUT.cabal
@@ -108,6 +108,7 @@ library
   else
     cpp-options: "-DCALLCONV=ccall"
     cc-options: "-DUSE_DLSYM"
+    extra-libraries: glut
 
 executable BOGLGP01-OnYourOwn1
   if !flag(BuildExamples)
Index: b/cbits/HsGLUT.c
===================================================================
--- a/cbits/HsGLUT.c
+++ b/cbits/HsGLUT.c
@@ -57,7 +57,7 @@ static const char* libNames[] = {
   /* If the public path failed, try the system framework path. */
   "/System/Library/Frameworks/GLUT.framework/GLUT"
 #else
-  "libglut.so", "libglut.so.3"
+  NULL
 #endif
 };