1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00
mpv/darwinfixlib.sh
atmos4 21e391d821 Darwin needs to run ranlib on any static lib before linking, we do this in this script just before the final linking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5951 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-03 19:23:15 +00:00

12 lines
249 B
Bash
Executable File

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