diff options
| author | nibbles 2bits | 2012-05-12 02:21:11 -0700 |
|---|---|---|
| committer | Jack Nagel | 2012-05-13 13:27:06 -0500 |
| commit | 7a886c2ddbfe48e106d9aa39ccc6ddc512b0b6c2 (patch) | |
| tree | ee03865f73e7e22154658fb7018108c7c3a15cc0 /Library | |
| parent | d14836132bcc96b31a89d454ebbe597549dc99a4 (diff) | |
| download | homebrew-7a886c2ddbfe48e106d9aa39ccc6ddc512b0b6c2.tar.bz2 | |
log4cxx: fix compile error with clang using autogen.sh
log4cxx building universal fails to link because the software uses
old libtool scripts that craft one compile command missing both
of the arch flags.
* Add conditional deps on automake & libtool
* Add a system call to `autogen.sh` to update the scripts
* Note in comments the upstream bug report.
* Tested on Lion 10.7.4 with clang and llvm.
Fixes #12127.
Closes #12211.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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 |
