blob: 36178826408ad1372d90d9fced603993d5c49bb8 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
Patrick Williamsc0f7c042017-02-23 20:41:17 -06003Index: Python-2.7.12/Lib/distutils/unixccompiler.py
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004===================================================================
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005--- 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 Williamsc124f4f2015-09-15 14:41:29 -050010
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 Williamsc0f7c042017-02-23 20:41:17 -060016@@ -298,12 +300,16 @@ class UnixCCompiler(CCompiler):
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017 # 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 Williamsc0f7c042017-02-23 20:41:17 -060022 elif os.path.exists(xcode_stub):
23+ print "Found %s" % (xcode_stub)
24 return xcode_stub
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025 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'