diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-03 19:23:15 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-03 19:23:15 +0000 |
commit | 21e391d82160ac29ec0f53146cec8f5042d28460 (patch) | |
tree | 4015e512498ceee9310516f0b3235ca5d7745c6b /darwinfixlib.sh | |
parent | 74c7dd3d84878a12eb12ca2eacc42ea347bc1330 (diff) | |
download | mpv-21e391d82160ac29ec0f53146cec8f5042d28460.tar.bz2 mpv-21e391d82160ac29ec0f53146cec8f5042d28460.tar.xz |
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
Diffstat (limited to 'darwinfixlib.sh')
-rwxr-xr-x | darwinfixlib.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/darwinfixlib.sh b/darwinfixlib.sh new file mode 100755 index 0000000000..6196ebd8aa --- /dev/null +++ b/darwinfixlib.sh @@ -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 |