* configure.ac: Rewrite targetobjs duplicate removal code to use
[deliverable/binutils-gdb.git] / gold / configure.ac
index 4bf223cb514ed8a8d579a446d668c4a8f06d50de..f184d4b29def3f4eca93a61c324c27f367f3e782 100644 (file)
@@ -163,7 +163,14 @@ for targ in $target $canon_targets; do
 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
   AC_DEFINE(HAVE_TARGET_32_LITTLE, 1,
This page took 0.022789 seconds and 4 git commands to generate.