From 430e386b9e69bf3a71c0e2cc06b7094d53ab6501 Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
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/misc/time/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'libc/misc/time/Makefile')

diff --git a/libc/misc/time/Makefile b/libc/misc/time/Makefile
index aac0d7762..ec8199c69 100644
--- a/libc/misc/time/Makefile
+++ b/libc/misc/time/Makefile
@@ -36,7 +36,9 @@ $(LIBC): ar-target
 ar-target: $(OBJS)
 	$(AR) $(ARFLAGS) $(LIBC) $(OBJS)
 
-$(OBJS): Makefile
+$(COBJS):
+	$(CC) $(CFLAGS) $< -c $*.c -o $*.o
+	$(STRIPTOOL) -x -R .note -R .comment $*.o
 
 clean:
 	rm -f *.[oa] *~ core
-- 
cgit v1.2.3