--- deluge-1.0.0/setup.py	2008-09-21 12:22:24.000000000 -0700
+++ deluge-1.0.0/setup.py.new	2008-09-24 08:41:13.000000000 -0700
@@ -145,9 +145,8 @@
         ]
 
     # Modify the libs if necessary for systems with only -mt boost libs    
-    if not os.path.exists(
-        os.path.join(sysconfig.PREFIX, "lib", "libboost_filesystem.so")):
-        # It's likely that this system doesn't have symlinks setup
+    if os.path.exists(os.path.join(sysconfig.get_config_vars()['LIBDIR'], \
+        'libboost_filesystem-mt.so')):
         # So add '-mt' to the libraries
         for lib in _libraries:
             if lib[:6] == "boost_":
