[pypy-commit] pypy pypy-config: hack to show what compilation/build should be filling in, tests needed

mattip pypy.commits at gmail.com
Wed Oct 26 13:18:49 EDT 2016


Author: Matti Picus <matti.picus at gmail.com>
Branch: pypy-config
Changeset: r87947:49935c97e717
Date: 2016-10-26 20:10 +0300
http://bitbucket.org/pypy/pypy/changeset/49935c97e717/

Log:	hack to show what compilation/build should be filling in, tests
	needed

diff --git a/lib_pypy/_sysconfigdata.py b/lib_pypy/_sysconfigdata.py
--- a/lib_pypy/_sysconfigdata.py
+++ b/lib_pypy/_sysconfigdata.py
@@ -1,2 +1,8 @@
 build_time_vars = {
+    'CFLAGS':  '',
+    'LIBS':    '',
+    'SYSLIBS': '',
+    'VERSION': '',
+    'LIBPL': '.',
+    'LINKFORSHARED': '',
 }
diff --git a/pypy-config b/pypy-config
--- a/pypy-config
+++ b/pypy-config
@@ -15,7 +15,6 @@
 import getopt
 
 sys.argv = ['$interp'] + '$@'.split()
-print sys.argv
 
 from distutils import sysconfig
 
@@ -59,7 +58,7 @@
         print ' '.join(flags)
 
     elif opt in ('--libs', '--ldflags'):
-        libs = ['-lpython' + pyver]
+        libs = ['-lpypy-c']
         libs += getvar('LIBS').split()
         libs += getvar('SYSLIBS').split()
         # add the prefix/lib/pythonX.Y/config dir, but only if there is no


More information about the pypy-commit mailing list