* configure.ac: Rewrite targetobjs duplicate removal code to use
authorIan Lance Taylor <ian@airs.com>
Sat, 6 Feb 2010 20:14:01 +0000 (20:14 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 6 Feb 2010 20:14:01 +0000 (20:14 +0000)
only shell constructs.
* configure: Rebuild.

gold/ChangeLog
gold/configure
gold/configure.ac

index 264001b29c3c555aea1f57f46a78274c94d74181..0aac2be0788aa4d1ed8ae3e1bd20c369ad6eb5ec 100644 (file)
@@ -1,3 +1,9 @@
+2010-02-06  Ian Lance Taylor  <iant@google.com>
+
+       * configure.ac: Rewrite targetobjs duplicate removal code to use
+       only shell constructs.
+       * configure: Rebuild.
+
 2010-02-05  Doug Kwan  <dougkwan@google.com>
 
        PR 11247
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
 
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.034152 seconds and 4 git commands to generate.