ocaml: use Homebrew's compiler settings
Signed-off-by: Jack Nagel <jacknagel@gmail.com>master
parent
083143a4ad
commit
50df729cb8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue