view darwinfixlib.sh @ 11256:bed47a358d05

fix issue when compiler is called 'cc', and --disable-gcc-checking was used (it would force the compiler to be 'gcc') Patch by Pierre Lombard <p_l@gmx.fr>
author gabucino
date Fri, 24 Oct 2003 07:44:38 +0000
parents 184f37880f90
children
line wrap: on
line source

#!/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