changeset 5950:184f37880f90

Darwin needs to run ranlib on any static lib before linking, we do this in this script just before the final linking.
author atmos4
date Fri, 03 May 2002 19:23:15 +0000
parents 142e0fa289d4
children 042aa5ff94d0
files darwinfixlib.sh
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/darwinfixlib.sh	Fri May 03 19:23:15 2002 +0000
@@ -0,0 +1,11 @@
+#!/bin/sh
+if [ `uname -s` = 'Darwin' ]; then
+  echo "Fixing libs with ranlib for Darwin (MacOSX)"
+  for i in $* ; do
+    if (echo $i | grep \\.a) >/dev/null 2>&1; then
+      echo "ranlib $i"
+      (ranlib $i) >/dev/null 2>&1
+    fi
+  done
+fi
+exit 0