diff options
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 |