diff options
| author | Ben Charrow | 2012-06-02 14:37:38 -0400 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-06-03 11:16:39 -0700 |
| commit | f5d1f6eacc0b04fb274785f148b2be6011013bc9 (patch) | |
| tree | 1934e47aae67abeac7aa128dee839327e5108dfc /Library/Formula | |
| parent | 467fa7c92198ba2061a8c134af252eb7cfbcfdb8 (diff) | |
| download | homebrew-f5d1f6eacc0b04fb274785f148b2be6011013bc9.tar.bz2 | |
log4cxx: Set optimization level to O2
propertiespatternconverter.cpp fails to compile when the optimization flag
is "-Os", which is the default. Appending "-O2" to CXXFLAGS, which is a
similar optimization level, resolves the issue.
Fixes #12565.
Closes #12566.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/log4cxx.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/log4cxx.rb b/Library/Formula/log4cxx.rb index fd840d884..374672033 100644 --- a/Library/Formula/log4cxx.rb +++ b/Library/Formula/log4cxx.rb @@ -23,6 +23,7 @@ class Log4cxx < Formula def install ENV.universal_binary if ARGV.build_universal? + ENV.O2 # Using -Os causes build failures on Snow Leopard. # Fixes build error with clang, old libtool scripts. cf. #12127 # Reported upstream here: https://issues.apache.org/jira/browse/LOGCXX-396 |
