summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/Makefile.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/libc/inet/rpc/Makefile.in b/libc/inet/rpc/Makefile.in
index e28070c28..32a96c940 100644
--- a/libc/inet/rpc/Makefile.in
+++ b/libc/inet/rpc/Makefile.in
@@ -26,12 +26,18 @@ INET_RPC_SRC:=$(wildcard $(INET_RPC_DIR)/*.c)
else
INET_RPC_SRC:=$(patsubst %.c,$(INET_RPC_DIR)/%.c,$(CSRC))
endif
+# rpc_thread.oS is better, because the header adds unneeded references to __pthread_internal_tsd*
+INET_RPC_SRC:=$(filter-out $(INET_RPC_DIR)/rpc_thread.c,$(INET_RPC_SRC))
+
INET_RPC_OBJ:=$(patsubst $(INET_RPC_DIR)/%.c,$(INET_RPC_OUT)/%.o,$(INET_RPC_SRC))
+libc-static-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OUT)/rpc_thread.o
+libc-shared-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OUT)/rpc_thread.oS
+
libc-a-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OBJ)
libc-so-$(UCLIBC_HAS_RPC)+=$(INET_RPC_OBJ:.o=.os)
objclean-y+=inet_rpc_objclean
inet_rpc_objclean:
- $(RM) $(INET_RPC_OUT)/*.{o,os}
+ $(RM) $(INET_RPC_OUT)/*.{o,os,oS}