summaryrefslogtreecommitdiff
path: root/test/string
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-11-16 20:35:25 +0000
committerEric Andersen <andersen@codepoet.org>2000-11-16 20:35:25 +0000
commit350c0215ef0e7cd915c2a2931b548e75d540a686 (patch)
tree97825f27b89cbfb0029c686d305184b8416af6da /test/string
parentaa85deb86c823f2ee9e966c6676a092d774cd493 (diff)
Fix it so files are not stripped when debugging (doh!). Fix up strip
rules. With this fix in place, I can now find what is wrong with malloc... -Erik
Diffstat (limited to 'test/string')
-rw-r--r--test/string/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/string/Makefile b/test/string/Makefile
index bf847f66e..2bf5b83c2 100644
--- a/test/string/Makefile
+++ b/test/string/Makefile
@@ -16,11 +16,6 @@ EXTRA_LIBS=$(TOPDIR)libc.a -lgcc
YCFLAGS = -Wall -Os -fomit-frame-pointer
YLDFLAGS = -s --static
-# Allow alternative stripping tools to be used...
-ifndef $(STRIPTOOL)
- STRIPTOOL = strip
-endif
-STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $@
TARGETS=string string_glibc
TARGETS+=testcopy testcopy_glibc
@@ -34,6 +29,7 @@ string: string.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(XCFLAGS) -c $< -o $@.o
$(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(STRIPTOOL) -x -R .note -R .comment $@
-./$@
-@ echo " "
@@ -44,6 +40,7 @@ string_glibc: string.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(YCFLAGS) -c $< -o $@.o
$(CC) $(YLDFLAGS) --static $@.o -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $@
-./$@
-@ echo " "
@@ -54,6 +51,7 @@ testcopy: testcopy.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(XCFLAGS) -c $< -o $@.o
$(CC) $(XLDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
+ $(STRIPTOOL) -x -R .note -R .comment $@
-./$@ > testcopy.out
-@ echo " "
@@ -64,6 +62,7 @@ testcopy_glibc: testcopy.c Makefile $(TOPDIR)libc.a
-@ echo " "
$(CC) $(YCFLAGS) -c $< -o $@.o
$(CC) $(YLDFLAGS) --static $@.o -o $@
+ $(STRIPTOOL) -x -R .note -R .comment $@
-./$@ > testcopy.gnu.out
-@ echo " "