summaryrefslogtreecommitdiff
path: root/extra/scripts/get-needed-libgcc-objects.sh
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-09-11 10:24:28 +0000
committerEric Andersen <andersen@codepoet.org>2003-09-11 10:24:28 +0000
commit7f0171838934ff5433b527a0d1978ee48625404d (patch)
tree309edd27ab211fc49e748caecaae361aa845a4a3 /extra/scripts/get-needed-libgcc-objects.sh
parent83d06c569c280324874460374f5b2ca3ebe63263 (diff)
Stefan Allius writes:
1. Under Solaris the test command with the 'string' argument don't work well. So I added the '-n' argument, which might work on all platforms. 2. The sed under Solaris don't support the '-s' argument, which is a GNU extension. I changed it to '-e' which works fine for me.
Diffstat (limited to 'extra/scripts/get-needed-libgcc-objects.sh')
-rwxr-xr-xextra/scripts/get-needed-libgcc-objects.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/scripts/get-needed-libgcc-objects.sh b/extra/scripts/get-needed-libgcc-objects.sh
index 3743b0c0c..824990408 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 | 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
+if $NM --undefined-only libc.ldr 2>&1 | sed -e '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