* configure.ac: Rewrite targetobjs duplicate removal code to use

only shell constructs.
	* configure: Rebuild.
This commit is contained in:
Ian Lance Taylor 2010-02-06 20:14:01 +00:00
parent cf846138ae
commit 9109c078e3
3 changed files with 22 additions and 2 deletions

View 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> 2010-02-05 Doug Kwan <dougkwan@google.com>
PR 11247 PR 11247

9
gold/configure vendored
View File

@ -3411,7 +3411,14 @@ fi
done done
# Remove any duplicates. # 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 if test -n "$targ_32_little"; then

View File

@ -163,7 +163,14 @@ for targ in $target $canon_targets; do
done done
# Remove any duplicates. # 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 if test -n "$targ_32_little"; then
AC_DEFINE(HAVE_TARGET_32_LITTLE, 1, AC_DEFINE(HAVE_TARGET_32_LITTLE, 1,