[pypy-commit] pypy py3.6: port some of the changes from macports pypy
mattip
pypy.commits at gmail.com
Tue Oct 29 09:41:29 EDT 2019
Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.6
Changeset: r97883:117749e404fd
Date: 2019-10-29 15:40 +0200
http://bitbucket.org/pypy/pypy/changeset/117749e404fd/
Log: port some of the changes from macports pypy
https://github.com/macports/macports-
ports/blob/master/lang/pypy/files/darwin.py.diff
diff --git a/rpython/translator/platform/darwin.py b/rpython/translator/platform/darwin.py
--- a/rpython/translator/platform/darwin.py
+++ b/rpython/translator/platform/darwin.py
@@ -39,7 +39,7 @@
# we get the basename of the executable we're trying to build.
return (list(self.shared_only)
+ ['-dynamiclib', '-install_name', '@rpath/' + target_basename,
- '-undefined', 'dynamic_lookup', '-flat_namespace']
+ '-undefined', 'dynamic_lookup']
+ args)
def _include_dirs_for_libffi(self):
@@ -113,11 +113,15 @@
class Darwin_PowerPC(Darwin):#xxx fixme, mwp
name = "darwin_powerpc"
+ link_flags = Darwin.link_flags + ('-arch', 'ppc')
+ cflags = Darwin.cflags + ('-arch', 'ppc')
class Darwin_i386(Darwin):
name = "darwin_i386"
- DEFAULT_CC = 'clang -arch i386'
+ link_flags = Darwin.link_flags + ('-arch', 'i386')
+ cflags = Darwin.cflags + ('-arch', 'i386')
class Darwin_x86_64(Darwin):
name = "darwin_x86_64"
- DEFAULT_CC = 'clang -arch x86_64'
+ link_flags = Darwin.link_flags + ('-arch', 'x86_64')
+ cflags = Darwin.cflags + ('-arch', 'x86_64')
More information about the pypy-commit
mailing list