From f5d1f6eacc0b04fb274785f148b2be6011013bc9 Mon Sep 17 00:00:00 2001 From: Ben Charrow Date: Sat, 2 Jun 2012 14:37:38 -0400 Subject: 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 --- Library/Formula/log4cxx.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') 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 -- cgit v1.2.3