I got a report from Jeremy that -force_load with multi-architecture
archives requires that the archives be ranlibbed.

Pushed this.

Peter
>From 8f76455acfbfd28d695720507f78dc533f2d7a4c Mon Sep 17 00:00:00 2001
From: Peter O'Gorman <pe...@pogma.com>
Date: Tue, 4 May 2010 00:44:48 -0500
Subject: [PATCH] Ranlib is required with -force_load and fat archives.

* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Run
ranlib.
Reported by Jeremy Huddleston <jerem...@apple.com>
---
 ChangeLog             |    7 +++++++
 libltdl/m4/libtool.m4 |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 84c0bc3..aae203c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-05-04  Peter O'Gorman  <pe...@pogma.com>
+
+	Ranlib is required with -force_load and fat archives.
+	* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Run
+	ranlib.
+	Reported by Jeremy Huddleston <jerem...@apple.com>
+
 2010-04-09  Ralf Wildenhues  <ralf.wildenh...@gmx.de>
 
 	Fix incompatible struct declarations.
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 5e0bba7..685ac0c 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -982,6 +982,8 @@ _LT_EOF
       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
       echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
       $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
+      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
+      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
       cat > conftest.c << _LT_EOF
 int main() { return 0;}
 _LT_EOF
-- 
1.6.2.5

Reply via email to