From: Ian Lance Taylor Date: Sat, 6 Feb 2010 20:14:01 +0000 (+0000) Subject: * configure.ac: Rewrite targetobjs duplicate removal code to use X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9109c078e3f7ede78b1cd64efe05a55df993dc5a;p=binutils-gdb.git * configure.ac: Rewrite targetobjs duplicate removal code to use only shell constructs. * configure: Rebuild. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 264001b29c3..0aac2be0788 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2010-02-06 Ian Lance Taylor + + * configure.ac: Rewrite targetobjs duplicate removal code to use + only shell constructs. + * configure: Rebuild. + 2010-02-05 Doug Kwan PR 11247 diff --git a/gold/configure b/gold/configure index dbc6319c8ad..9fd198f2753 100755 --- a/gold/configure +++ b/gold/configure @@ -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 diff --git a/gold/configure.ac b/gold/configure.ac index 4bf223cb514..f184d4b29de 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -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,