Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r59849:a984a9dda83d
Date: 2013-01-07 17:12 +0100
http://bitbucket.org/pypy/pypy/changeset/a984a9dda83d/

Log:    Hack hack hack again at the same old problem: libffi.a.

diff --git a/pypy/translator/platform/linux.py 
b/pypy/translator/platform/linux.py
--- a/pypy/translator/platform/linux.py
+++ b/pypy/translator/platform/linux.py
@@ -36,7 +36,13 @@
         # places where we need to look for libffi.a
         # XXX obscuuure!  only look for libffi.a if run with translate.py
         if 'translate' in sys.modules:
-            return self.library_dirs_for_libffi() + ['/usr/lib']
+            if sys.maxint > 2**32:
+                host = 'x86_64'
+            else:
+                host = 'x86'
+            return self.library_dirs_for_libffi() + [
+                '/usr/lib',
+                '/usr/lib/%s-linux-gnu/' % host]
         else:
             return []
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to