From 685a6f283e98657104b71a7d694c99f19e454afa Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Fri, 7 May 2010 17:19:19 +0300 Subject: static build: fix internal locking weaks to get pulled in always Linker is smart and does not pull in weaks.os, ever. This happens because that compilation unit does not get strong references and ld eliminates dead code. We really need the weaks for static build in a compilation unit that is always there, otherwise it won't work. Signed-off-by: Timo Teras Acked-by: Roman I Khimov Signed-off-by: Austin Foxley --- libc/misc/pthread/Makefile.in | 1 - 1 file changed, 1 deletion(-) (limited to 'libc/misc/pthread/Makefile.in') diff --git a/libc/misc/pthread/Makefile.in b/libc/misc/pthread/Makefile.in index 69cdf104a..2f436ac1c 100644 --- a/libc/misc/pthread/Makefile.in +++ b/libc/misc/pthread/Makefile.in @@ -11,7 +11,6 @@ MISC_PTHREAD_DIR := $(top_srcdir)libc/misc/pthread MISC_PTHREAD_OUT := $(top_builddir)libc/misc/pthread libc-shared-$(UCLIBC_HAS_TLS) += $(MISC_PTHREAD_OUT)/tsd.os -libc-static-$(UCLIBC_HAS_THREADS) += $(MISC_PTHREAD_OUT)/weaks.o objclean-y += CLEAN_libc/misc/pthread -- cgit v1.2.3