aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vim.rb
diff options
context:
space:
mode:
authorSamuel John2013-06-11 18:47:29 +0200
committerSamuel John2013-06-11 19:05:57 +0200
commit575c12948c657e68a6792587de63116192ecf1e9 (patch)
treeacb37683a9d5425e8f195f60800e90eb0a077764 /Library/Formula/vim.rb
parenta382dc47225c77743bd1623c2807898fcfc67c5d (diff)
downloadhomebrew-575c12948c657e68a6792587de63116192ecf1e9.tar.bz2
vim: Add descr. for adding LDFLAGS.
Diffstat (limited to 'Library/Formula/vim.rb')
-rw-r--r--Library/Formula/vim.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/vim.rb b/Library/Formula/vim.rb
index e0d665ce9..333bdd507 100644
--- a/Library/Formula/vim.rb
+++ b/Library/Formula/vim.rb
@@ -40,7 +40,11 @@ class Vim < Formula
opts = language_opts
opts << "--disable-nls" if build.include? "disable-nls"
- ENV.prepend 'LDFLAGS', "-F#{python.framework}" if python && python.brewed?
+ # Avoid that vim always links System's Python even if configure tells us
+ # it has found a brewed Python. Verify with `otool -L`.
+ if python && python.brewed?
+ ENV.prepend 'LDFLAGS', "-F#{python.framework}"
+ end
# XXX: Please do not submit a pull request that hardcodes the path
# to ruby: vim can be compiled against 1.8.x or 1.9.3-p385 and up.