From 9109c078e3f7ede78b1cd64efe05a55df993dc5a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 6 Feb 2010 20:14:01 +0000 Subject: * configure.ac: Rewrite targetobjs duplicate removal code to use only shell constructs. * configure: Rebuild. --- gold/configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gold/configure') diff --git a/gold/configure b/gold/configure index dbc6319..9fd198f 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 -- cgit v1.1