aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-09-13 11:26:00 -0400
committerMax Howell2012-09-13 11:28:31 -0400
commitdcd2fdb8452b2596bea5481195fc74661a378cea (patch)
tree535a2c251f4347ee138445276dfaa1ac2b111a07 /Library
parent30f47a7977c919cf33450be09e18c96cb5f34bf0 (diff)
downloadhomebrew-dcd2fdb8452b2596bea5481195fc74661a378cea.tar.bz2
Look harder for bsdmake
bsdmake used to be keg-only, so some users still have it unlinked (presumably they never run brew-doctor). Even though there is code to abort if dependencies are unlinked, it appears broken for this case. So let's just be thorough anyway. Closes #14751.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/make5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/ENV/4.3/make b/Library/ENV/4.3/make
index aff18372e..b3df33114 100755
--- a/Library/ENV/4.3/make
+++ b/Library/ENV/4.3/make
@@ -2,7 +2,10 @@
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
if [ $(basename "$0") == "bsdmake" ]; then
pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
- exec "$pwd/../../../bin/bsdmake" "$@"
+ bsd="$pwd/../../../bin/bsdmake"
+ # bsdmake used to be keg-only: support users who don't run brew doctor
+ [ -x "$bsd" ] || bsd="$(brew --prefix bsdmake)/bin/bsdmake"
+ exec "$bsd" "$@"
else
exec xcrun make "$@"
fi