summaryrefslogtreecommitdiff
path: root/libutil
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 02:55:31 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-26 20:23:24 +0200
commit29ff9055c80efe77a7130767a9fcb3ab8c67e8ce (patch)
treeb061656c1336d7d73ed5eef59352e3d50d8147a7 /libutil
parentb06f85d62c41a4ed108628b1c564203f36c0ab4e (diff)
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
Diffstat (limited to 'libutil')
-rw-r--r--libutil/Makefile.in27
1 files changed, 0 insertions, 27 deletions
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)