diff options
| author | Benjamin Kramer | 2009-12-28 16:09:33 +0100 |
|---|---|---|
| committer | Benjamin Kramer | 2009-12-28 18:31:54 +0100 |
| commit | 699759848dab3cb2f5728f9529b815c93676cf52 (patch) | |
| tree | 1b2356f3caeaecbd47c994f139d8b7a950ed06fd | |
| parent | 14fd1a19b553dca348165c3c5576444f5c07ecd6 (diff) | |
| download | homebrew-699759848dab3cb2f5728f9529b815c93676cf52.tar.bz2 | |
Respect CXX in unrar formula
LTO seems to miscompile this one, disable it.
It doesn't improve the code here anyways.
Closes #317.
| -rw-r--r-- | Library/Formula/unrar.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/unrar.rb b/Library/Formula/unrar.rb index c342564b4..8f1c337dc 100644 --- a/Library/Formula/unrar.rb +++ b/Library/Formula/unrar.rb @@ -53,11 +53,14 @@ class Unrar <Formula @homepage='http://www.rarlab.com' def install + # No need to do LTO, we're combining all source files manually + ENV.O3 + # by compiling all in one unit, g++ optimises slightly better # be warned: this trick doesn't work very often! And I'd only do it for # very stable source trees as if they change stuff it sucks for you. File.open('all.cpp', 'w') {|f| f.write ALL_CPP} - system "g++ #{ENV['CXXFLAGS']} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE all.cpp -o unrar" + system "#{ENV['CXX']} #{ENV['CXXFLAGS']} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE all.cpp -o unrar" bin.install 'unrar' FileUtils.mv 'license.txt', 'COPYING' |
