haskell-opengl/GLURaw — pull request #2 by acfoltzer (2011-12-04 20:41:24+00:00)
Title: Hackish fix for Linux link problems

Hi Jason et al,

I just ran into a similar problem to Issue #1 calling `perspective`, and applying the patch found in [this SO answer](http://stackoverflow.com/a/7936492/204932) fixed the problem, although there's some unwanted output from the `printf`.

To make the fix a bit more sustainable, I `#ifdef`ed it to not run on Macs, and sent the output to `/dev/null`. It's not ideal, certainly, but my linker-fu is apparently not up to the task of getting it to link without any undefined symbols (adding `-u gluBeginCurve` to `ld-options` seemed like it should work, but...).

For the record, I'm running Ubuntu 11.10 with `libglu1-mesa-dev 7.11-0ubuntu3`.

Adam