Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 5520c2010ab0c2cbe9b41e1bd84a45fc > files > 12

libtool-1.5.22-3mdv2008.0.src.rpm

--- libtool-1.5.6/ltmain.in.relink	2004-05-02 23:02:14.052575000 +0800
+++ libtool-1.5.6/ltmain.in	2004-05-02 23:06:05.990315424 +0800
@@ -3662,15 +3662,23 @@
 	fi
 
 	tmp_deplibs=
+	inst_prefix_arg=
 	for test_deplib in $deplibs; do
 		case " $convenience " in
 		*" $test_deplib "*) ;;
 		*)
-			tmp_deplibs="$tmp_deplibs $test_deplib"
+			if test -n "$inst_prefix_dir" && (echo "$test_deplib" | grep -- "$inst_prefix_dir" >/dev/null); then
+				inst_prefix_arg="$inst_prefix_arg $test_deplib"
+			else
+				tmp_deplibs="$tmp_deplibs $test_deplib"
+			fi
 			;;
 		esac
 	done
 	deplibs="$tmp_deplibs"
+	if test -n "$inst_prefix_arg"; then
+		deplibs="$inst_prefix_arg $deplibs"
+	fi
 
 	if test -n "$convenience"; then
 	  if test -n "$whole_archive_flag_spec"; then