--- a/trunk/src/ladspa/wscript
+++ b/trunk/src/ladspa/wscript
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # encoding: utf-8
 
-import os
+import sys, os
 
 def configure(conf):
     pass
@@ -27,7 +27,7 @@
     src = ['ladspa_guitarix.cpp'] + bsources
     incl = ['../headers', '..','../gx_head/engine','../../libgxwmm','../../libgxw']
     lib = []
-    if bld.env['IS_LINUX']:
+    if sys.platform.startswith("linux"):
         lib.append('dl')
     uselib = ['JACK', 'SNDFILE', 'GTHREAD', 'GMODULE_EXPORT',
               'GLIBMM', 'GIOMM', 'FFTW3']