aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Gesbert2015-02-03 11:06:32 +0900
committerMike McQuaid2015-02-03 08:33:59 +0000
commita8b5a17482587c86e34cc1a0f150e6a6a3eed2b0 (patch)
treeb133c685a67872a7e6729f1d306a72b20dd49faf
parentfa26da71ba906e9d87d3dec1e3fbd629bca13fc8 (diff)
downloadhomebrew-a8b5a17482587c86e34cc1a0f150e6a6a3eed2b0.tar.bz2
objective-caml: pass correct configure flags for bottling
See https://github.com/ocaml/opam/issues/1853 : not passing the flags to ./configure generates an OCaml compiler that compiles for the current arch, breaking bottles of projects compiled using OCaml on older CPUs. Closes #36482. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/objective-caml.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/objective-caml.rb b/Library/Formula/objective-caml.rb
index 1db2f28a9..acf8a95a1 100644
--- a/Library/Formula/objective-caml.rb
+++ b/Library/Formula/objective-caml.rb
@@ -19,10 +19,10 @@ class ObjectiveCaml < Formula
args = %W[
--prefix #{HOMEBREW_PREFIX}
--mandir #{man}
- -cc #{ENV.cc}
-with-debug-runtime
]
- args << "-aspp" << "#{ENV.cc} -c"
+ args << "-cc" << "#{ENV.cc} #{ENV.cflags}"
+ args << "-aspp" << "#{ENV.cc} #{ENV.cflags} -c"
args << "-no-graph" if build.without? "x11"
ENV.deparallelize # Builds are not parallel-safe, esp. with many cores