From 575c12948c657e68a6792587de63116192ecf1e9 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Tue, 11 Jun 2013 18:47:29 +0200 Subject: vim: Add descr. for adding LDFLAGS. --- Library/Formula/vim.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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. -- cgit v1.2.3