diff options
| author | samueljohn | 2012-10-08 12:26:48 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-08 08:47:55 -0700 |
| commit | 2eb4f5b12d65e06512191df8a72f2587cbf643c8 (patch) | |
| tree | 39a76d133ffc8164bf176175edfc1ec5ee0c3dc4 /Library | |
| parent | a60a55667a6296932bbb0ec79c860698be2ddfe7 (diff) | |
| download | homebrew-2eb4f5b12d65e06512191df8a72f2587cbf643c8.tar.bz2 | |
python: For Xcode-only, add the the Tk header dir
Closes #15351.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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" |
