aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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