Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r88768:0da457b223d3
Date: 2016-11-30 15:22 +0100
http://bitbucket.org/pypy/pypy/changeset/0da457b223d3/

Log:    merge heads

diff --git a/lib-python/3/distutils/sysconfig_pypy.py 
b/lib-python/3/distutils/sysconfig_pypy.py
--- a/lib-python/3/distutils/sysconfig_pypy.py
+++ b/lib-python/3/distutils/sysconfig_pypy.py
@@ -60,6 +60,8 @@
 
 def _init_posix():
     """Initialize the module as appropriate for POSIX systems."""
+    so_list = [s[0] for s in imp.get_suffixes() if s[2] == imp.C_EXTENSION]
+    so_ext = (so_list or ['.so'])[0]
     g = {}
     g['CC'] = "gcc -pthread"
     g['CXX'] = "g++ -pthread"
@@ -67,7 +69,7 @@
     g['CFLAGS'] = "-DNDEBUG -O2"
     g['CCSHARED'] = "-fPIC"
     g['LDSHARED'] = "gcc -pthread -shared"
-    g['SO'] = [s[0] for s in imp.get_suffixes() if s[2] == imp.C_EXTENSION][0]
+    g['SO'] = so_ext
     g['SHLIB_SUFFIX'] = g['SO']
     g['AR'] = "ar"
     g['ARFLAGS'] = "rc"
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to