-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpycurl-7.19.0-mingw.patch
19 lines (19 loc) · 1022 Bytes
/
pycurl-7.19.0-mingw.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/setup.py 2010-09-11 08:35:59 +0000
+++ b/setup.py 2010-09-11 08:35:38 +0000
@@ -68,14 +68,8 @@
print "Using curl directory:", CURL_DIR
assert os.path.isdir(CURL_DIR), "please check CURL_DIR in setup.py"
include_dirs.append(os.path.join(CURL_DIR, "include"))
- extra_objects.append(os.path.join(CURL_DIR, "lib", "libcurl.lib"))
- extra_link_args.extend(["gdi32.lib", "wldap32.lib", "winmm.lib", "ws2_32.lib",])
- add_libdirs("LIB", ";")
- if string.find(sys.version, "MSC") >= 0:
- extra_compile_args.append("-O2")
- extra_compile_args.append("-GF") # enable read-only string pooling
- extra_compile_args.append("-WX") # treat warnings as errors
- extra_link_args.append("/opt:nowin98") # use small section alignment
+ extra_objects.append("../../../lib/libcurl.dll.a")
+ extra_link_args.extend(["-lgdi32", "-lwldap32", "-lwinmm", "-lws2_32",])
else:
# Find out the rest the hard way
OPENSSL_DIR = scan_argv("--openssl-dir=", "")