2010-03-22 Doug Kwan <dougkwan@google.com>
[binutils-gdb.git] / gold / configure
index 4817e444dc545e8604ac187d97494a32e2a3025e..9fd198f27535de213dc1ec03eedb0f485ac7df3f 100755 (executable)
@@ -3410,6 +3410,16 @@ fi
   fi
 done
 
+# Remove any duplicates.
+to=""
+for t in $targetobjs; do
+  case " $to " in
+  *" $t "*) ;;
+  *) to="$to $t" ;;
+  esac
+done
+targetobjs=$to
+
 if test -n "$targ_32_little"; then
 
 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h