From fd47fd4039cadf42620bbfce43c3a0338e23ee26 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Mon, 18 Aug 2003 23:14:09 +0000 Subject: Work around a bug in nm from binutils-2.14.90.0.5. --- extra/scripts/get-needed-libgcc-objects.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extra/scripts/get-needed-libgcc-objects.sh') diff --git a/extra/scripts/get-needed-libgcc-objects.sh b/extra/scripts/get-needed-libgcc-objects.sh index f12aae153..3743b0c0c 100755 --- a/extra/scripts/get-needed-libgcc-objects.sh +++ b/extra/scripts/get-needed-libgcc-objects.sh @@ -20,7 +20,7 @@ echo " partial linking..." rm -f libc.ldr $LD $LDFLAGS -r -o libc.ldr $CRTOBJS --whole-archive ../libc.a -if $NM --undefined-only libc.ldr 2>&1 | grep -v "main$" | grep -v "_GLOBAL_OFFSET_TABLE_$" | grep -v "_gp_disp" | grep -v "^etext$" | grep -v "^__gmon_start__$" > sym.need ; then +if $NM --undefined-only libc.ldr 2>&1 | sed -s 's/ *$//' | sed -e 's/^.*U *//' | grep -v "main$" | grep -v "_GLOBAL_OFFSET_TABLE_$" | grep -v "_gp_disp" | grep -v "^etext$" | grep -v "^__gmon_start__$" > sym.need ; then EXIT_WITH_ERROR=0 rm -f obj.need touch obj.need -- cgit v1.2.3