diff darwinfixlib.sh @ 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
children
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