Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 3 | Index: Python-2.7.12/Lib/distutils/unixccompiler.py |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | =================================================================== |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | --- Python-2.7.12.orig/Lib/distutils/unixccompiler.py |
| 6 | +++ Python-2.7.12/Lib/distutils/unixccompiler.py |
| 7 | @@ -278,6 +278,8 @@ class UnixCCompiler(CCompiler): |
| 8 | |
| 9 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | |
| 11 | + print "Looking in %s for %s" % (lib, dirs) |
| 12 | + |
| 13 | for dir in dirs: |
| 14 | shared = os.path.join(dir, shared_f) |
| 15 | dylib = os.path.join(dir, dylib_f) |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 16 | @@ -298,12 +300,16 @@ class UnixCCompiler(CCompiler): |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | # assuming that *all* Unix C compilers do. And of course I'm |
| 18 | # ignoring even GCC's "-static" option. So sue me. |
| 19 | if os.path.exists(dylib): |
| 20 | + print "Found %s" % (dylib) |
| 21 | return dylib |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 22 | elif os.path.exists(xcode_stub): |
| 23 | + print "Found %s" % (xcode_stub) |
| 24 | return xcode_stub |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | elif os.path.exists(shared): |
| 26 | + print "Found %s" % (shared) |
| 27 | return shared |
| 28 | elif os.path.exists(static): |
| 29 | + print "Found %s" % (static) |
| 30 | return static |
| 31 | |
| 32 | # Oops, didn't find it in *any* of 'dirs' |