diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/objective-caml.rb | 9 |
1 files changed, 6 insertions, 3 deletions
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 |
