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
This commit is contained in:
atmos4 2002-05-03 19:23:15 +00:00
parent 74c7dd3d84
commit 21e391d821
1 changed files with 11 additions and 0 deletions

11
darwinfixlib.sh Executable file
View File

@ -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