aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[l---------]Library/ENV/4.3/bsdmake8
-rwxr-xr-xLibrary/ENV/4.3/make2
2 files changed, 8 insertions, 2 deletions
diff --git a/Library/ENV/4.3/bsdmake b/Library/ENV/4.3/bsdmake
index ac08cdcf9..72adb0941 120000..100755
--- a/Library/ENV/4.3/bsdmake
+++ b/Library/ENV/4.3/bsdmake
@@ -1 +1,7 @@
-make \ No newline at end of file
+#!/bin/bash
+export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
+pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+bsd="$pwd/../../../bin/bsdmake"
+# bsdmake used to be keg-only: support users who don't run brew doctor
+[ -x "$bsd" ] || bsd="$(${HOMEBREW_BREW_FILE} --prefix bsdmake)/bin/bsdmake"
+exec "$bsd" "$@"
diff --git a/Library/ENV/4.3/make b/Library/ENV/4.3/make
index fa7a19817..f7089de36 100755
--- a/Library/ENV/4.3/make
+++ b/Library/ENV/4.3/make
@@ -1,3 +1,3 @@
#!/bin/bash
export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
-exec xcrun "${0##*/}" "$@"
+exec xcrun make "$@"