aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorStephen Caudill2009-11-15 14:16:01 -0500
committerMax Howell2009-12-05 18:09:20 +0000
commit77786162e2b8ec4a4ce61e3b5b425dbcd5333857 (patch)
treec630c6c29034d4cf77b1dc98147512467df7817a /Library
parent9c8c453d46662f3f8b106e606bc69274bf7b3c15 (diff)
downloadhomebrew-77786162e2b8ec4a4ce61e3b5b425dbcd5333857.tar.bz2
Allow REE to be built shared
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ruby-enterprise-edition.rb19
1 files changed, 18 insertions, 1 deletions
diff --git a/Library/Formula/ruby-enterprise-edition.rb b/Library/Formula/ruby-enterprise-edition.rb
index a324dd7bb..8e7364393 100644
--- a/Library/Formula/ruby-enterprise-edition.rb
+++ b/Library/Formula/ruby-enterprise-edition.rb
@@ -11,6 +11,23 @@ class RubyEnterpriseEdition <Formula
def install
ENV.gcc_4_2 # fails with LLVM
- system "./installer --auto #{prefix} --no-tcmalloc"
+ args = ['./installer', "--auto #{prefix}", '--no-tcmalloc']
+ args.push('-c --enable-shared') if ARGV.include?('--enable-shared')
+ system *args
+ end
+
+ def caveats; <<-EOS
+By default we don't compile REE as a shared library. From their documentation:
+
+ Please note that enabling --enable-shared will make the Ruby interpreter
+ about 20% slower.
+
+For desktop environments (particularly ones requiring RubyCocoa) this is
+acceptable and even desirable.
+
+If you need REE to be compiled as a shared library, you can re-compile like so:
+
+ brew install ruby-enterprise-edition --force --enable-shared
+ EOS
end
end