[pypy-commit] pypy default: We now need -fPIC on PPC or translation will blow up with R_PPC_REL24 relocations that are out of range

stefanor noreply at buildbot.pypy.org
Mon May 5 23:10:20 CEST 2014


Author: Stefano Rivera <stefano at rivera.za.net>
Branch: 
Changeset: r71287:11c4878ea354
Date: 2014-05-05 23:09 +0200
http://bitbucket.org/pypy/pypy/changeset/11c4878ea354/

Log:	We now need -fPIC on PPC or translation will blow up with
	R_PPC_REL24 relocations that are out of range

diff --git a/rpython/translator/platform/__init__.py b/rpython/translator/platform/__init__.py
--- a/rpython/translator/platform/__init__.py
+++ b/rpython/translator/platform/__init__.py
@@ -267,7 +267,7 @@
     # Only required on armhf and mips{,el}, not armel. But there's no way to
     # detect armhf without shelling out
     if (platform.architecture()[0] == '64bit'
-            or platform.machine().startswith(('arm', 'mips'))):
+            or platform.machine().startswith(('arm', 'mips', 'ppc'))):
         host_factory = LinuxPIC
     else:
         host_factory = Linux


More information about the pypy-commit mailing list