[pypy-commit] pypy default: Patch issue #2535 (david naylor)

arigo pypy.commits at gmail.com
Mon Apr 10 04:04:40 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r91021:0c750a7ba24a
Date: 2017-04-10 10:04 +0200
http://bitbucket.org/pypy/pypy/changeset/0c750a7ba24a/

Log:	Patch issue #2535 (david naylor)

	Use cc/c++ instead of gcc/g++

diff --git a/lib-python/2.7/distutils/sysconfig_pypy.py b/lib-python/2.7/distutils/sysconfig_pypy.py
--- a/lib-python/2.7/distutils/sysconfig_pypy.py
+++ b/lib-python/2.7/distutils/sysconfig_pypy.py
@@ -61,12 +61,12 @@
 def _init_posix():
     """Initialize the module as appropriate for POSIX systems."""
     g = {}
-    g['CC'] = "gcc -pthread"
-    g['CXX'] = "g++ -pthread"
+    g['CC'] = "cc -pthread"
+    g['CXX'] = "c++ -pthread"
     g['OPT'] = "-DNDEBUG -O2"
     g['CFLAGS'] = "-DNDEBUG -O2"
     g['CCSHARED'] = "-fPIC"
-    g['LDSHARED'] = "gcc -pthread -shared"
+    g['LDSHARED'] = "cc -pthread -shared"
     g['SO'] = [s[0] for s in imp.get_suffixes() if s[2] == imp.C_EXTENSION][0]
     g['AR'] = "ar"
     g['ARFLAGS'] = "rc"


More information about the pypy-commit mailing list