From 31c995060b71a8add34e2ba85b6aac79b53d073a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 11 Jan 2002 14:35:25 +0000 Subject: Failed to call sort before calling uniq in several spots, thereby causing ld to choke during the gcc build. -Erik --- extra/scripts/get-needed-libgcc-objects.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extra/scripts') diff --git a/extra/scripts/get-needed-libgcc-objects.sh b/extra/scripts/get-needed-libgcc-objects.sh index 827262ac7..9b135c4c6 100755 --- a/extra/scripts/get-needed-libgcc-objects.sh +++ b/extra/scripts/get-needed-libgcc-objects.sh @@ -44,7 +44,7 @@ echo Extracting referenced libgcc.a objects ... rm -f obj.need.0 touch obj.need.0 while [ -s obj.need ] && ! cmp -s obj.need obj.need.0 ; do - (cd tmp-gcc && cat ../obj.need | uniq | xargs $LD -r -o ../libgcc.ldr) + (cd tmp-gcc && cat ../obj.need | sort | uniq | xargs $LD -r -o ../libgcc.ldr) cp obj.need obj.need.0 if $NM --undefined-only libgcc.ldr > sym.need ; then for SYM in `cat sym.need | sed -e 's/ U //g'` ; do @@ -61,7 +61,7 @@ cat obj.need | sort | uniq > obj.need.0 if [ -s obj.need.0 ] ; then echo Objects added from $LIBGCC: cat obj.need.0 - (cd tmp-gcc && cat ../obj.need | uniq | xargs $AR r ../libgcc-need.a) + (cd tmp-gcc && cat ../obj.need | sort | uniq | xargs $AR r ../libgcc-need.a) else echo No objects added from $LIBGCC. fi -- cgit v1.2.3