--- setup.py.orig 2007-11-28 11:49:38.000000000 -0600 +++ setup.py 2007-11-28 11:53:44.000000000 -0600 @@ -103,13 +103,13 @@ "-DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1", "-DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1", "-DHAVE_PTHREAD=1", "-DTORRENT_USE_OPENSSL=1", "-DHAVE_SSL=1", - "-DNDEBUG=1", "-O2"] + "-DNDEBUG=1"] if ARCH == "x64": EXTRA_COMPILE_ARGS.append("-DAMD64") includedirs = ['./libtorrent', './libtorrent/include', './libtorrent/include/libtorrent', - '/usr/include/python' + python_version] + '%%LOCALBASE%%/include'] if OS == "linux": if os.path.exists(os.path.join(sysconfig.get_config_vars()['LIBDIR'], \ @@ -148,7 +148,7 @@ boost_thread = "boost_thread-mt" librariestype = [boost_filesystem, boost_date_time, - boost_thread, 'z', 'pthread', 'ssl'] + boost_thread, 'z', 'ssl'] removals = ['-g', '-Wstrict-prototypes'] @@ -198,8 +198,10 @@ sources.remove('libtorrent/src/file_win.cpp') deluge_core = Extension('deluge_core', include_dirs = includedirs, + library_dirs = ['%%LOCALBASE%%/lib'], libraries = librariestype, extra_compile_args = EXTRA_COMPILE_ARGS, + extra_link_args = ['%%PTHREAD_LIBS%%'], sources = sources) else: sources.remove('libtorrent\\src\\file.cpp')