aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorJack Nagel2014-12-05 16:54:07 -0500
committerJack Nagel2014-12-05 16:54:33 -0500
commit03fce5fb6b373e6298986d407ed27c5eaa9482fc (patch)
treef5c8a2af3d8b528469f6a6b8be4399fb275a7dd9 /Library/ENV
parent13848bba6d3f23d4a7d88f254781719d69f7527f (diff)
downloadhomebrew-03fce5fb6b373e6298986d407ed27c5eaa9482fc.tar.bz2
Revert "Simplify bsdmake wrapper"
Fixes #34713. This reverts commit e4461afd36f04b1cd3cf56ec0636202150ce0570.
Diffstat (limited to 'Library/ENV')
-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 "$@"