From 29ff9055c80efe77a7130767a9fcb3ab8c67e8ce Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 24 Sep 2016 02:55:31 +0200 Subject: use a single libc and deduplicate threading code Similar to musl libc a single libc has many benefits and solves some open issues with uClibc-ng. - no pthread_mutex_* weak symbols exported anymore - applications no longer failing to link when either -lrt or -lpthread are missing for dynamic and static linking mode - smaller C library - slightly better runtime performance --- Rules.mak | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index f226dca71..9b76e4fd4 100644 --- a/Rules.mak +++ b/Rules.mak @@ -156,14 +156,10 @@ endif UCLIBC_LDSO := $(UCLIBC_LDSO_NAME).so.$(ABI_VERSION) NONSHARED_LIBNAME := uclibc_nonshared.a +NONSHARED_LIBPTHREAD := libpthread_nonshared.a + libc := $(top_builddir)lib/$(SHARED_LIBNAME) libc.depend := $(top_builddir)lib/$(SHARED_LIBNAME:.$(ABI_VERSION)=) -ifneq ($(ARCH_HAS_NO_SHARED),y) -libdl.depend := $(top_builddir)lib/libdl.so -endif -ifneq ($(HAS_NO_THREADS),y) -libpthread.depend := $(top_builddir)lib/libpthread.so -endif interp := $(top_builddir)lib/interp.os ldso := $(top_builddir)lib/$(UCLIBC_LDSO) headers_dep := $(top_builddir)include/bits/sysnum.h \ -- cgit v1.2.3