summaryrefslogtreecommitdiff
path: root/security/py-crypto/patches/patch-ac
blob: 70e1091715aa2ab415b98f7e24596cf99472da1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"])