view darwinfixlib.sh @ 11705:192c101ccd6b

MPlayer's configure fails to detect fontconfig on a system with POSIXLY_CORRECT set in the environment. The reason it fails is that it passes the arguments to pkg-config in the wrong order. (When POSIXLY_CORRECT is not set, glibc takes the liberty of rearranging the parameters.) patch by Matthew Fischer <futhark@vzavenue.net>
author diego
date Wed, 31 Dec 2003 21:35:52 +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