Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ocaml: use Homebrew's compiler settings

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit bc937acd74ee902c70b5bd6410ab2fa52297891c 1 parent b71a4aa
@jacknagel jacknagel authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 Library/Formula/objective-caml.rb
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.