--- Hipmunk-5.2.0.9.orig/Hipmunk.cabal	2012-07-25 01:10:04.433281000 +0400
+++ Hipmunk-5.2.0.9/Hipmunk.cabal	2012-07-25 01:28:21.041003300 +0400
@@ -214,4 +214,9 @@
     CC-Options:  -g
   else
     CC-Options:  -DNDEBUG
-  Extra-Libraries: m
+
+-- MinGW's libm is a dummy object file to satisfy unix'ish linkers,
+-- the actual symbols are provided by the C runtime library (msvcrt.dll),
+-- which gets linked in both when compiled/dynamically loaded by ghci.
+  if !os( windows )
+    Extra-Libraries: m
