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 --- libutil/Makefile.in | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'libutil') diff --git a/libutil/Makefile.in b/libutil/Makefile.in index d36995fb0..dd4df0569 100644 --- a/libutil/Makefile.in +++ b/libutil/Makefile.in @@ -9,13 +9,6 @@ subdirs += libutil CFLAGS-libutil := -DNOT_IN_libc -DIS_IN_libutil $(SSP_ALL_CFLAGS) -LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libutil.so := -Wl,--dsbt-index=8 -LDFLAGS-libutil.so := $(LDFLAGS) - -LIBS-libutil.so := $(LIBS) - -libutil_FULL_NAME := libutil-$(VERSION).so - libutil_DIR := $(top_srcdir)libutil libutil_OUT := $(top_builddir)libutil @@ -44,31 +37,11 @@ libutil-a-y := $(libutil_OBJ) endif libutil-so-y := $(libutil_OBJ:.o=.os) -lib-a-$(UCLIBC_HAS_LIBUTIL) += $(top_builddir)lib/libutil.a -lib-so-$(UCLIBC_HAS_LIBUTIL) += $(top_builddir)lib/libutil.so objclean-y += CLEAN_libutil -ifeq ($(DOPIC),y) -$(top_builddir)lib/libutil.so: $(top_builddir)lib/libutil.a $(libc.depend) -else -$(top_builddir)lib/libutil.so: $(libutil_OUT)/libutil_so.a $(libc.depend) -endif - $(call link.so,$(libutil_FULL_NAME),$(ABI_VERSION)) - # link for backward compatibility - $(call link.so,$(libutil_FULL_NAME),0) - -$(libutil_OUT)/libutil_so.a: $(libutil-so-y) - $(Q)$(RM) $@ - $(do_ar) - $(libutil_OUT)/libutil.oS: $(libutil_SRC) $(Q)$(RM) $@ $(compile-m) -$(top_builddir)lib/libutil.a: $(libutil-a-y) - $(Q)$(INSTALL) -d $(dir $@) - $(Q)$(RM) $@ - $(do_ar) - CLEAN_libutil: $(do_rm) $(addprefix $(libutil_OUT)/*., o os oS a) -- cgit v1.2.3