--- serd-0.18.0/wscript	2012-08-23 04:13:45.002359296 +0000
+++ serd-0.18.0-haiku/wscript	2012-12-12 15:55:31.292290560 +0000
@@ -3,6 +3,7 @@
 import os
 import shutil
 import subprocess
+import sys
 
 from waflib.extras import autowaf as autowaf
 import waflib.Logs as Logs, waflib.Options as Options
@@ -131,7 +132,12 @@
                      {'SERD_MAJOR_VERSION' : SERD_MAJOR_VERSION})
 
     libflags = ['-fvisibility=hidden']
-    libs     = ['m']
+    
+  
+    if sys.platform.startswith('haiku'):
+    	libs  = []
+    else:
+    	libs     = ['m']
     defines  = []
     if bld.env.MSVC_COMPILER:
         libflags = []

