aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-11-08 23:59:36 -0600
committerJack Nagel2013-11-08 23:59:36 -0600
commit80b21225b3f68d514176008014f1ecf6430cfb23 (patch)
treee08ac4566c0e51f0842866ec3848c807b337c0e5 /Library/Formula
parent92a7b32f94c11c240585e5fb8dc3c9a667f0228e (diff)
downloadhomebrew-80b21225b3f68d514176008014f1ecf6430cfb23.tar.bz2
gambit-scheme: heed advice from configure when using clang
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gambit-scheme.rb17
1 files changed, 11 insertions, 6 deletions
diff --git a/Library/Formula/gambit-scheme.rb b/Library/Formula/gambit-scheme.rb
index a88b45dfa..0f83eb66a 100644
--- a/Library/Formula/gambit-scheme.rb
+++ b/Library/Formula/gambit-scheme.rb
@@ -11,12 +11,17 @@ class GambitScheme < Formula
fails_with :llvm
def install
- args = ["--disable-debug",
- "--prefix=#{prefix}",
- "--infodir=#{info}",
- # Recommended to improve the execution speed and compactness
- # of the generated executables. Increases compilation times.
- "--enable-single-host"]
+ args = %W[
+ --disable-debug
+ --prefix=#{prefix}
+ --infodir=#{info}
+ ]
+
+ # Recommended to improve the execution speed and compactness
+ # of the generated executables. Increases compilation times.
+ # Don't enable this when using clang, per configure warning.
+ args << "--enable-single-host" unless ENV.compiler == :clang
+
args << "--enable-shared" if build.include? 'enable-shared'
unless ENV.compiler == :gcc