From d40387ada9e3a6ab46baf8fdd31738a6f475b4c1 Mon Sep 17 00:00:00 2001
From: Marcos Pinto <markybob@dipconsultants.com>
Date: Sun, 3 Feb 2008 05:12:47 +0000
Subject: [PATCH] forgot z has to be zlib in windows

---
 setup.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/setup.py b/setup.py
index ee8bf6962..6c38f6e82 100644
--- a/setup.py
+++ b/setup.py
@@ -135,15 +135,15 @@ _libraries = [
     'boost_date_time',
     'boost_thread',
     'boost_python',
-    'z',
     'pthread',
 ]
 
 if windows_check():
     _extra_link_args += ['-L./win32/lib']
-    _include_dirs += ['./win32/include', 'C:/Program Files/boost/boost_1_34_1']
+    _include_dirs += ['./win32/include/zlib', 'C:/Program Files/boost/boost_1_34_1']
     _library_dirs += ['C:/Program Files/boost/boost_1_34_1/lib']
     _libraries += [
+        'zlib',
         'ssleay32MT',
         'libeay32MT',
         'advapi32',
@@ -153,7 +153,10 @@ if windows_check():
     ]
 else:
     _include_dirs += ['/usr/include/python' + python_version]
-    _libraries += ['ssl']
+    _libraries += [
+        'ssl',
+        'z'
+        ]
     
 _sources = glob.glob("./libtorrent/src/*.cpp") + \
                         glob.glob("./libtorrent/src/kademlia/*.cpp") + \