diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/python.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 588825c3f..ec19c610a 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -191,6 +191,8 @@ class Python < Formula # Help Python's build system (distribute/pip) to build things on Xcode-only systems # The setup.py looks at "-isysroot" to get the sysroot (and not at --sysroot) cflags += " -isysroot #{MacOS.sdk_path}" + # For the Xlib.h, Python needs this header dir + cflags += " -I#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers" ldflags += " -isysroot #{MacOS.sdk_path}" # Same zlib.h-not-found-bug as in env :std (see below) args << "CPPFLAGS=-I#{MacOS.sdk_path}/usr/include" |
