2010-03-22 Doug Kwan <dougkwan@google.com>
[binutils-gdb.git] / gold / configure
index dbc6319c8ad3b31bf9057dfe24f134a23f8bfe19..9fd198f27535de213dc1ec03eedb0f485ac7df3f 100755 (executable)
@@ -3411,7 +3411,14 @@ fi
 done
 
 # Remove any duplicates.
-targetobjs=`echo $targetobjs | tr ' ' '\n' | sort | uniq | tr '\n' ' '`
+to=""
+for t in $targetobjs; do
+  case " $to " in
+  *" $t "*) ;;
+  *) to="$to $t" ;;
+  esac
+done
+targetobjs=$to
 
 if test -n "$targ_32_little"; then