diff options
| author | Samuel John | 2013-06-05 14:42:26 +0200 |
|---|---|---|
| committer | Samuel John | 2013-06-05 14:46:02 +0200 |
| commit | 7aa2bcc3d5425bbcae5b993c8ffb3694a4d1d355 (patch) | |
| tree | e68d2a0e6601864ad0604f51a8a11a2ed38f1f37 /Library/Homebrew/python_helper.rb | |
| parent | 4dac954cdb811f2caabbea397e4f4fe4eb714a25 (diff) | |
| download | brew-7aa2bcc3d5425bbcae5b993c8ffb3694a4d1d355.tar.bz2 | |
Python add -F#{python.framework} for brewed Python
Since Python has been removed from superenv and
added as an explicit `depends_on :python`,
we should add
`-F#{HOMEBREW_PREFIX}/opt/python/Framewoks`
so that build tools that don't use
`python-config --ldflags` (as they should!)
can link against brewed Python.
Diffstat (limited to 'Library/Homebrew/python_helper.rb')
| -rw-r--r-- | Library/Homebrew/python_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/python_helper.rb b/Library/Homebrew/python_helper.rb index d17bbacee..992ef43c1 100644 --- a/Library/Homebrew/python_helper.rb +++ b/Library/Homebrew/python_helper.rb @@ -64,6 +64,7 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block) ENV.prepend 'CMAKE_INCLUDE_PATH', py.incdir, ':' ENV.prepend 'PKG_CONFIG_PATH', py.pkg_config_path, ':' if py.pkg_config_path ENV.prepend 'PATH', py.binary.dirname, ':' unless py.from_osx? + ENV.prepend 'LDFLAGS', "-F#{py.framework}" if py.brewed? # Track the state of the currently selected python for this block, # so if this python_helper is called again _inside_ the block, we can # just return the right python (see `else`-branch a few lines down): |
