--- rtree/core.py.orig	2010-03-05 05:28:17.000000000 +0300
+++ rtree/core.py	2010-04-13 23:37:25.000000000 +0400
@@ -78,7 +78,7 @@
     platform = os.uname()[0]
     lib_name = 'libspatialindex_c.so'
     if platform == 'Darwin':
-        lib_name = 'libspatialindex_c.dylib'
+        lib_name = find_library('libspatialindex_c.dylib')
         free = ctypes.CDLL(find_library('libc')).free
     else:
         free = ctypes.CDLL(find_library('libc.so.6')).free
