diff options
| author | Stephen Caudill | 2009-11-15 14:16:01 -0500 |
|---|---|---|
| committer | Max Howell | 2009-12-05 18:09:20 +0000 |
| commit | 77786162e2b8ec4a4ce61e3b5b425dbcd5333857 (patch) | |
| tree | c630c6c29034d4cf77b1dc98147512467df7817a /Library/Formula | |
| parent | 9c8c453d46662f3f8b106e606bc69274bf7b3c15 (diff) | |
| download | homebrew-77786162e2b8ec4a4ce61e3b5b425dbcd5333857.tar.bz2 | |
Allow REE to be built shared
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ruby-enterprise-edition.rb | 19 |
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 |
