aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV/4.3/bsdmake
diff options
context:
space:
mode:
authorJack Nagel2013-11-13 22:14:22 -0600
committerJack Nagel2013-11-13 22:26:07 -0600
commitba7ec6eb2f650ebc5a0ae09547eea423dbd45173 (patch)
treee5bba831c89c7746d3b0bb62b1c8e2f4d6dac1d9 /Library/ENV/4.3/bsdmake
parentc496c93e3aba8620717c148e44c20aa08bd34903 (diff)
downloadhomebrew-ba7ec6eb2f650ebc5a0ae09547eea423dbd45173.tar.bz2
Split bsdmake wrapper out from make wrapper
Diffstat (limited to 'Library/ENV/4.3/bsdmake')
-rwxr-xr-x[l---------]Library/ENV/4.3/bsdmake8
1 files changed, 7 insertions, 1 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" "$@"