summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-01 11:19:10 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-01 11:19:10 +0000
commit6bd321dfd676de41918f9cf0ee6ecbda8a25a5a9 (patch)
treefabdebd49ec28a8caa199e06f98a6966f58d114d /libc
parentefbcf025d22d7700239e91662190098be8c0e488 (diff)
weaks for __pthread_internal_tsd* are added if not built w/ -DSHARED, header issue
Diffstat (limited to 'libc')
-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}