Commits

Philip Jenvey committed 12bca02

apply b8d3cdad4da4 and 9ffefaf25ca3 from default

  • Participants
  • Parent commits c4d6a29
  • Branches py3k

Comments (0)

Files changed (1)

lib-python/3/distutils/sysconfig_pypy.py

     optional C speedup components.
     """
     if compiler.compiler_type == "unix":
-        compiler.compiler_so.extend(['-fPIC', '-Wimplicit'])
+        compiler.compiler_so.extend(['-O2', '-fPIC', '-Wimplicit'])
         compiler.shared_lib_extension = get_config_var('SO')
         if "CFLAGS" in os.environ:
-            cflags = os.environ["CFLAGS"]
-            compiler.compiler.append(cflags)
-            compiler.compiler_so.append(cflags)
-            compiler.linker_so.append(cflags)
+            cflags = os.environ["CFLAGS"].split()
+            compiler.compiler.extend(cflags)
+            compiler.compiler_so.extend(cflags)
+            compiler.linker_so.extend(cflags)
 
 
 from .sysconfig_cpython import (