summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/Makefile2
-rw-r--r--libc/inet/rpc/Makefile4
2 files changed, 6 insertions, 0 deletions
diff --git a/libc/inet/Makefile b/libc/inet/Makefile
index 8c846370f..95432060e 100644
--- a/libc/inet/Makefile
+++ b/libc/inet/Makefile
@@ -47,9 +47,11 @@ 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
$(OBJS): Makefile
diff --git a/libc/inet/rpc/Makefile b/libc/inet/rpc/Makefile
index dfa68e055..d62851ea9 100644
--- a/libc/inet/rpc/Makefile
+++ b/libc/inet/rpc/Makefile
@@ -39,6 +39,10 @@ COBJS=$(patsubst %.c,%.o, $(CSRC))
all: $(COBJS) $(LIBC)
+$(COBJS):
+ $(CC) $(CFLAGS) $< -c $*.c -o $*.o
+ $(STRIPTOOL) -x -R .note -R .comment $*.o
+
$(LIBC): $(COBJS)
$(AR) $(ARFLAGS) $(LIBC) $(COBJS)