[pypy-svn] r76937 - pypy/trunk/pypy/translator/platform

arigo at codespeak.net arigo at codespeak.net
Wed Sep 8 11:56:50 CEST 2010


Author: arigo
Date: Wed Sep  8 11:56:49 2010
New Revision: 76937

Modified:
   pypy/trunk/pypy/translator/platform/posix.py
Log:
Temporary fix.  It seems that on 32-bit linux, compiling
with -fPIC gives assembler that asmgcc is not happy about.


Modified: pypy/trunk/pypy/translator/platform/posix.py
==============================================================================
--- pypy/trunk/pypy/translator/platform/posix.py	(original)
+++ pypy/trunk/pypy/translator/platform/posix.py	Wed Sep  8 11:56:49 2010
@@ -4,7 +4,7 @@
 
 from pypy.translator.platform import Platform, log, _run_subprocess
 from pypy.tool import autopath
-import py, os
+import py, os, sys
 
 class BasePosix(Platform):
     exe_ext = ''
@@ -104,10 +104,12 @@
         else:
             target_name = exe_name.basename
 
-        if shared:
-            cflags = self.cflags + self.shared_only
-        else:
-            cflags = self.cflags + self.standalone_only
+        cflags = self.cflags
+        if sys.maxint > 2147483647:   # XXX XXX XXX sort this out
+            if shared:
+                cflags = self.cflags + self.shared_only
+            else:
+                cflags = self.cflags + self.standalone_only
 
         m = GnuMakefile(path)
         m.exe_name = exe_name



More information about the Pypy-commit mailing list