SHA256
1
0
forked from pool/libquicktime
libquicktime/fix-libtool

27 lines
471 B
Bash

#!/bin/bash
# fix broken libtool
#
# Can someone please LART the one who over-designed it?
# Thank you.
workdir="$1"
tmpfile="/tmp/tmpfile-$$"
trap "rm -f $tmpfile" EXIT
# disable -rpath
file=`find $workdir -name libtool`
sed -e 's|\(hardcode_into_libs\)=.*|\1=no|' \
< $file > $tmpfile
mv $tmpfile $file
chmod 755 $file
# disable relinking
find $workdir -name \*.la -type f -print |\
while read file; do
grep -v relink $file > $tmpfile
mv $tmpfile $file
done