summaryrefslogtreecommitdiff
path: root/dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch')
-rw-r--r--dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch b/dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch
new file mode 100644
index 00000000000..2ce24a49cc7
--- /dev/null
+++ b/dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch
@@ -0,0 +1,13 @@
+do not hardcode -I/usr/include as it's useless and breaks cross-compiles
+
+--- a/setup.py
++++ b/setup.py
+@@ -370,7 +370,7 @@ kw = {'name':"pycrypto",
+ 'ext_modules': plat_ext + [
+ # _fastmath (uses GNU mp library)
+ Extension("Crypto.PublicKey._fastmath",
+- include_dirs=['src/','/usr/include/'],
++ include_dirs=['src/'],
+ libraries=['gmp'],
+ sources=["src/_fastmath.c"]),
+