From bc937acd74ee902c70b5bd6410ab2fa52297891c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 28 Aug 2012 21:05:25 -0500 Subject: ocaml: use Homebrew's compiler settings Signed-off-by: Jack Nagel --- Library/Formula/objective-caml.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/objective-caml.rb b/Library/Formula/objective-caml.rb index 037e8b161..da858cf12 100644 --- a/Library/Formula/objective-caml.rb +++ b/Library/Formula/objective-caml.rb @@ -11,16 +11,19 @@ class ObjectiveCaml < Formula skip_clean :all def install - system "./configure", "--prefix", HOMEBREW_PREFIX, "--mandir", man + system "./configure", "--prefix", HOMEBREW_PREFIX, + "--mandir", man, + "-cc", ENV.cc, + "-aspp", "#{ENV.cc} -c" ENV.deparallelize # Builds are not parallel-safe, esp. with many cores system "make world" system "make opt" system "make opt.opt" system "make", "PREFIX=#{prefix}", "install" - (lib+'ocaml/compiler-libs').install 'typing', 'parsing', 'utils' + (lib/'ocaml/compiler-libs').install 'typing', 'parsing', 'utils' # site-lib in the Cellar will be a symlink to the HOMEBREW_PREFIX location, # which is mkpath'd by Keg#link when something installs into it - ln_s HOMEBREW_PREFIX+"lib/ocaml/site-lib", lib+"ocaml/site-lib" + ln_s HOMEBREW_PREFIX/"lib/ocaml/site-lib", lib/"ocaml/site-lib" end end -- cgit v1.2.3