Armin Rigo  committed 9ffefaf

Fix: pass the -O2 option by default to the C compiler. Previously,
it was building any C code with the default -O0.

  • Participants
  • Parent commits 6545ccd
  • Branches default

Comments (0)

Files changed (1)

File lib-python/2.7/distutils/

     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"].split()