[uClibc]get-needed-libgcc-objects.sh patch

John Tyner jtyner at cs.ucr.edu
Thu Sep 13 21:16:53 UTC 2001


I didn't mention that I got redefined call errors during my first build
process. I piped the info to uniq and the errors went away. Here is a
patch if someone else is having the same problem. (I saw this problem
mentioned before but that it had been resolved)

-- 
John Tyner
jtyner at cs.ucr.edu
-------------- next part --------------
--- uClibc-orig/extra/scripts/get-needed-libgcc-objects.sh	Tue May 29 12:21:26 2001
+++ uClibc/extra/scripts/get-needed-libgcc-objects.sh	Thu Sep 13 10:51:09 2001
@@ -44,7 +44,7 @@
 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 @@
 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


More information about the uClibc mailing list