diff options
| author | Max Howell | 2012-09-24 09:46:42 -0400 |
|---|---|---|
| committer | Max Howell | 2012-09-24 09:49:54 -0400 |
| commit | c076a272eeefba3b5425eb6f651997cd2eb6e4e9 (patch) | |
| tree | 966454e6aa7b1e66b4f478bf26ed819c41e067de /Library | |
| parent | ca14962ab9a16ccd50a50fbbefe4c1486662bf9c (diff) | |
| download | brew-c076a272eeefba3b5425eb6f651997cd2eb6e4e9.tar.bz2 | |
Work even when RUBYLIB='-'
Apparently setting RUBYLIB to '-' causes the library path to be unset. So we need to set our own library path in our scripts.
Fixes Homebrew/homebrew-versions/#47.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/ENV/libsuperenv.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/ENV/libsuperenv.rb b/Library/ENV/libsuperenv.rb index 48093cc9b..8b38156c4 100644 --- a/Library/ENV/libsuperenv.rb +++ b/Library/ENV/libsuperenv.rb @@ -1,6 +1,9 @@ # Yes, a good deal of this could be imported from Homebrew-proper # But Homebrew-proper is dog-slow currently, and I didn't want every cc -# instantiation to be slower be a tangible amount. +# instantiation to be slower by a tangible amount. + +# https://github.com/Homebrew/homebrew-versions/issues/47 +$:.unshift "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8" class String def directory?; File.directory? self end |
