summaryrefslogtreecommitdiff
path: root/extra/scripts/get-needed-libgcc-objects.sh
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-09-13 21:48:48 +0000
committerEric Andersen <andersen@codepoet.org>2001-09-13 21:48:48 +0000
commit07187c6aff8079e6d9267f32a5f0cc722df72dec (patch)
tree5b5ff4ac8fe8d5e4c760dd9444e10fa9162222a4 /extra/scripts/get-needed-libgcc-objects.sh
parentbecc149523160d35e75b84359220f5e24cfb80c2 (diff)
Patch from John Tyner <jtyner@cs.ucr.edu> to avoid redefined
symbols by piping results through uniq
Diffstat (limited to 'extra/scripts/get-needed-libgcc-objects.sh')
-rwxr-xr-xextra/scripts/get-needed-libgcc-objects.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/scripts/get-needed-libgcc-objects.sh b/extra/scripts/get-needed-libgcc-objects.sh
index 79e15dac9..0caa2c5f6 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 | xargs $LD -r -o ../libgcc.ldr)
+ (cd tmp-gcc ; cat ../obj.need | 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 | xargs $AR r ../libgcc-need.a)
+ (cd tmp-gcc ; cat ../obj.need | uniq | xargs $AR r ../libgcc-need.a)
else
echo No objects added from $LIBGCC.
fi