
#10568: Regression from 7.8.4, loading GLUT into GHCI fails on the Mac -------------------------------+----------------------------------------- Reporter: George | Owner: Type: bug | Status: infoneeded Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.2-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 (amd64) Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------+----------------------------------------- Comment (by trommler): I think linking `libHSGLUT...dylib` without framework GLUT ist just plain wrong. `cbits/HsGLUT.c` refers to symbols in the GLUT framework so we must link against framework GLUT. The reason it works with older ghci is that shared libraries were loaded (`dlopen`ed) with global scope (see #8935) and another package might have loaded GLUT before. In conclusion I agree with @rwbarton that we need to fix Cabal so it runs the final link with the appropriate `-framework` options. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10568#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler