diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/log4cxx.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/log4cxx.rb b/Library/Formula/log4cxx.rb index b751e4101..fd840d884 100644 --- a/Library/Formula/log4cxx.rb +++ b/Library/Formula/log4cxx.rb @@ -10,6 +10,11 @@ class Log4cxx < Formula cause "Fails with 'collect2: ld terminated with signal 11 [Segmentation fault]'" end + if ARGV.build_head? and MacOS.xcode_version >= "4.3" + depends_on "automake" => :build + depends_on "libtool" => :build + end + def options [ ["--universal", "Build for both 32 & 64 bit Intel."] @@ -19,6 +24,10 @@ class Log4cxx < Formula def install ENV.universal_binary if ARGV.build_universal? + # Fixes build error with clang, old libtool scripts. cf. #12127 + # Reported upstream here: https://issues.apache.org/jira/browse/LOGCXX-396 + # Remove at: unknown, waiting for developer comments. + system './autogen.sh' system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", # Docs won't install on OS X |
