aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/objective-caml.rb
diff options
context:
space:
mode:
authorJack Nagel2012-08-28 21:05:25 -0500
committerJack Nagel2012-08-28 21:19:57 -0500
commitbc937acd74ee902c70b5bd6410ab2fa52297891c (patch)
tree58543b50620ff127718ae42a0bf3d9b0dcd0a3a8 /Library/Formula/objective-caml.rb
parentb71a4aa193cbda48faf5a0e38737f003c6e0351b (diff)
downloadhomebrew-bc937acd74ee902c70b5bd6410ab2fa52297891c.tar.bz2
ocaml: use Homebrew's compiler settings
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/objective-caml.rb')
-rw-r--r--Library/Formula/objective-caml.rb9
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