From 430e386b9e69bf3a71c0e2cc06b7094d53ab6501 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 20 Oct 2000 00:03:55 +0000 Subject: Strip all object files of all non global symbols and .note and .comment, saving a lot of space in the resultant binaries... -Erik --- libc/stdlib/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libc/stdlib/Makefile') diff --git a/libc/stdlib/Makefile b/libc/stdlib/Makefile index a6bd08710..285080523 100644 --- a/libc/stdlib/Makefile +++ b/libc/stdlib/Makefile @@ -46,9 +46,15 @@ ar-target: $(OBJS) $(MOBJ): $(MSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o + $(STRIPTOOL) -x -R .note -R .comment $*.o $(MOBJ2): $(MSRC2) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o + $(STRIPTOOL) -x -R .note -R .comment $*.o + +$(COBJS): + $(CC) $(CFLAGS) $< -c $*.c -o $*.o + $(STRIPTOOL) -x -R .note -R .comment $*.o $(OBJ): Makefile -- cgit v1.2.3