]> granicus.if.org Git - python/commitdiff
Pick up Makefile variable BASECFLAGS too. This is needed since OPT was
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 10 Feb 2003 14:02:33 +0000 (14:02 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 10 Feb 2003 14:02:33 +0000 (14:02 +0000)
split into OPT and BASECFLAGS (Makefile.pre.in rev. 1.108), because
now there are essential CFLAGS in BASECFLAGS.

Lib/distutils/sysconfig.py

index aa3636f609c1960ac6a42657012a6a5d41bb7a0d..67353a8d6431c070b5c27cb291d0ef056b158028 100644 (file)
@@ -146,8 +146,8 @@ def customize_compiler(compiler):
     varies across Unices and is stored in Python's Makefile.
     """
     if compiler.compiler_type == "unix":
-        (cc, cxx, opt, ccshared, ldshared, so_ext) = \
-            get_config_vars('CC', 'CXX', 'OPT', 'CCSHARED', 'LDSHARED', 'SO')
+        (cc, cxx, opt, basecflags, ccshared, ldshared, so_ext) = \
+            get_config_vars('CC', 'CXX', 'OPT', 'BASECFLAGS', 'CCSHARED', 'LDSHARED', 'SO')
 
         if os.environ.has_key('CC'):
             cc = os.environ['CC']
@@ -159,6 +159,8 @@ def customize_compiler(compiler):
             cpp = cc + " -E"           # not always
         if os.environ.has_key('LDFLAGS'):
             ldshared = ldshared + ' ' + os.environ['LDFLAGS']
+        if basecflags:
+               opt = basecflags + ' ' + opt
         if os.environ.has_key('CFLAGS'):
             opt = opt + ' ' + os.environ['CFLAGS']
             ldshared = ldshared + ' ' + os.environ['CFLAGS']