summaryrefslogtreecommitdiff
path: root/security/py-crypto/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'security/py-crypto/patches/patch-ac')
-rw-r--r--security/py-crypto/patches/patch-ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/py-crypto/patches/patch-ac b/security/py-crypto/patches/patch-ac
new file mode 100644
index 00000000000..70e1091715a
--- /dev/null
+++ b/security/py-crypto/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.3 2010/12/05 17:13:09 gls Exp $
+
+--- setup.py.orig 2010-08-27 04:41:55.000000000 +0000
++++ setup.py
+@@ -157,7 +157,7 @@ class PCTBuildExt (build_ext):
+ self.compiler.include_dirs.insert(0, "src/inc-msvc/")
+
+ # Detect libgmp and don't build _fastmath if it is missing.
+- lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
++ lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib', '@@LIBDIR@@']
+ if not (self.compiler.find_library_file(lib_dirs, 'gmp')):
+ print >>sys.stderr, "warning: GMP library not found; Not building Crypto.PublicKey._fastmath."
+ self.__remove_extensions(["Crypto.PublicKey._fastmath"])