Commits

Armin Rigo committed 9cc9fd4

Checkin by mvt: some OS/X support.

Comments (0)

Files changed (1)

lib-python/modified-2.7/distutils/unixccompiler.py

             # On OSX users can specify an alternate SDK using
             # '-isysroot', calculate the SDK root if it is specified
             # (and use it further on)
-            cflags = sysconfig.get_config_var('CFLAGS')
+            cflags = sysconfig.get_config_var('CFLAGS') or ''
             m = re.search(r'-isysroot\s+(\S+)', cflags)
             if m is None:
                 sysroot = '/'