Lines 737-754
Link Here
|
737 |
fi |
737 |
fi |
738 |
elif [[ $SEARCH_BROKEN ]]; then |
738 |
elif [[ $SEARCH_BROKEN ]]; then |
739 |
# Look for broken .la files |
739 |
# Look for broken .la files |
|
|
740 |
la_SEARCH_DIRS="$SEARCH_DIRS" |
741 |
la_search_dir="" |
742 |
la_broken="" |
743 |
la_lib="" |
740 |
for depend in $( |
744 |
for depend in $( |
741 |
gawk -F"[=']" '/^dependency_libs/{ |
745 |
gawk -F"[=']" '/^dependency_libs/{ |
742 |
gsub("^-[^[:space:]]*", "", $3); |
|
|
743 |
gsub("[[:space:]]-[^[:space:]]*", "", $3); |
744 |
print $3 |
746 |
print $3 |
745 |
}' "$target_file" |
747 |
}' "$target_file" |
746 |
); do |
748 |
); do |
747 |
if [[ $depend = /* && ! -e $depend ]]; then |
749 |
if [[ $depend = /* && ! -e $depend ]]; then |
748 |
echo "obj $target_file" >> "$BROKEN_FILE" |
750 |
echo "obj $target_file" >> "$BROKEN_FILE" |
749 |
echo_v " broken $target_file (requires $depend)" |
751 |
echo_v " broken $target_file (requires $depend)" |
|
|
752 |
elif [[ $depend = "-L/"* || $depend = "-R/"* ]]; then |
753 |
if ! [[ $'\n'${la_SEARCH_DIRS}$'\n' == *$'\n'${depend#-?}$'\n'* ]]; then |
754 |
la_SEARCH_DIRS+=$'\n'"${depend#-?}" |
755 |
fi |
756 |
elif [[ $depend = "-l"* ]]; then |
757 |
la_lib="lib${depend#-l}" |
758 |
la_broken="yes" |
759 |
IFS=$'\n' |
760 |
for la_search_dir in $la_SEARCH_DIRS; do |
761 |
if [[ -e ${la_search_dir}/${la_lib}.so || -e ${la_search_dir}/${la_lib}.a ]]; then |
762 |
la_broken="no" |
763 |
fi |
764 |
done |
765 |
IFS="$OIFS" |
766 |
if [[ $la_broken = yes ]]; then |
767 |
echo "obj $target_file" >> "$BROKEN_FILE" |
768 |
echo_v " broken $target_file (requires $depend)" |
769 |
fi |
750 |
fi |
770 |
fi |
751 |
done |
771 |
done |
|
|
772 |
unset la_SEARCH_DIRS la_search_dir la_broken la_lib |
752 |
fi |
773 |
fi |
753 |
[[ $VERBOSE ]] && |
774 |
[[ $VERBOSE ]] && |
754 |
progress $((++i)) $numFiles $target_file || |
775 |
progress $((++i)) $numFiles $target_file || |