Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > eaa2544bf86fe8171db5da7abe58e797 > files > 1

python-imaging-1.1.7-7.mga3.src.rpm

diff -urNp Imaging-1.1.7.orig/setup.py Imaging-1.1.7/setup.py
--- Imaging-1.1.7.orig/setup.py	2009-11-15 18:06:10.000000000 +0200
+++ Imaging-1.1.7/setup.py	2011-02-02 19:22:12.543798458 +0200
@@ -289,7 +289,7 @@ class pil_build_ext(build_ext):
         for file in LIBIMAGING:
             files.append(os.path.join("libImaging", file + ".c"))
 
-        libs = []
+        libs = ["m"]
         defs = []
         if feature.jpeg:
             libs.append(feature.jpeg)
@@ -361,7 +361,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