| Index: pylib/gyp/xcode_emulation.py
|
| diff --git a/pylib/gyp/xcode_emulation.py b/pylib/gyp/xcode_emulation.py
|
| index 0e5031028531cc5e39138199d494c03f33bc5239..4de0441541f5591ff85cc8e742135cf45b243510 100644
|
| --- a/pylib/gyp/xcode_emulation.py
|
| +++ b/pylib/gyp/xcode_emulation.py
|
| @@ -840,7 +840,8 @@ class XcodeSettings(object):
|
| ldflags.append('-arch ' + archs[0])
|
|
|
| # Xcode adds the product directory by default.
|
| - ldflags.append('-L' + product_dir)
|
| + # Rewrite -L. to -L./ to work around http://www.openradar.me/25313838
|
| + ldflags.append('-L' + (product_dir if product_dir != '.' else './'))
|
|
|
| install_name = self.GetInstallName()
|
| if install_name and self.spec['type'] != 'loadable_module':
|
|
|