aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV/4.3/make
diff options
context:
space:
mode:
authorMax Howell2012-08-30 10:03:26 -0400
committerMax Howell2012-08-30 20:02:29 -0400
commitd4503b1202c65df1fd636695aa633d5a60997ee8 (patch)
tree4fe312e54ad6573d9614b323a0ce5689cf8a3b95 /Library/ENV/4.3/make
parenta4ccf68602ed7ed65dae9c517c9a957a771dd75e (diff)
downloadbrew-d4503b1202c65df1fd636695aa633d5a60997ee8.tar.bz2
Fixes Homebrew/homebrew#14542; ocaml superenv issues
This patch removes most of the settings for CC, CXX etc. because we are trying to be minimal. Then we force the compiler to Homebrew's choice underneath in superenv. We however leave LD because we prefer that build-systems use the c-compiler for linking, it generally works better (copiously tested), however when the build-system explicitly calls ld, we respect that. This gets around the ocaml bug in question, since somehow clang was crashing during link, but the ld tool itself (which is kind of clang, kind of llvm-gcc) is okay with this. Also moved the setting of O (so that cc-args are refurbished) into a make wrapper. Not sure if this matter much, but seems more consistent.
Diffstat (limited to 'Library/ENV/4.3/make')
-rwxr-xr-xLibrary/ENV/4.3/make3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/ENV/4.3/make b/Library/ENV/4.3/make
new file mode 100755
index 000000000..7e5196e6a
--- /dev/null
+++ b/Library/ENV/4.3/make
@@ -0,0 +1,3 @@
+#!/bin/sh
+export HOMEBREW_CCCFG="O$HOMEBREW_CCCFG"
+exec xcrun make "$@"