From 350c0215ef0e7cd915c2a2931b548e75d540a686 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 16 Nov 2000 20:35:25 +0000 Subject: 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 --- test/string/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/string/Makefile') 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 " " -- cgit v1.2.3