blob: f4d6167eeccc554e237486dba5e9a1abc2627cc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- setup.py.old 2009-07-03 11:34:59.141671252 +0200
+++ setup.py 2009-07-03 11:51:54.415666711 +0200
@@ -281,6 +281,8 @@ class pil_build_ext(build_ext):
if struct.unpack("h", "\0\1")[0] == 1:
defs.append(("WORDS_BIGENDIAN", None))
+ libs.append("m")
+
exts = [(Extension(
"_imaging", files, libraries=libs, define_macros=defs
))]
@@ -332,7 +334,7 @@ class pil_build_ext(build_ext):
))
if os.path.isfile("_imagingmath.c"):
- exts.append(Extension("_imagingmath", ["_imagingmath.c"]))
+ exts.append(Extension("_imagingmath", ["_imagingmath.c"], libraries=["m"]))
self.extensions[:] = exts
|