summaryrefslogtreecommitdiff
path: root/libnsl
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 /libnsl
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 'libnsl')
-rw-r--r--libnsl/Makefile.in27
1 files changed, 0 insertions, 27 deletions
diff --git a/libnsl/Makefile.in b/libnsl/Makefile.in
index e79268c76..d6ee95601 100644
--- a/libnsl/Makefile.in
+++ b/libnsl/Makefile.in
@@ -9,13 +9,6 @@ subdirs += libnsl
CFLAGS-libnsl := -DNOT_IN_libc -DIS_IN_libnsl $(SSP_ALL_CFLAGS)
-LDFLAGS-$(UCLIBC_FORMAT_DSBT_ELF)-libnsl.so := -Wl,--dsbt-index=6
-LDFLAGS-libnsl.so := $(LDFLAGS) $(call link.asneeded,-lc)
-
-LIBS-libnsl.so := $(LIBS)
-
-libnsl_FULL_NAME := libnsl-$(VERSION).so
-
libnsl_DIR := $(top_srcdir)libnsl
libnsl_OUT := $(top_builddir)libnsl
@@ -29,27 +22,7 @@ libnsl-a-y := $(libnsl_OBJ)
endif
libnsl-so-y := $(libnsl_OBJ:.o=.os)
-lib-a-$(UCLIBC_HAS_LIBNSL_STUB) += $(top_builddir)lib/libnsl.a
-lib-so-$(UCLIBC_HAS_LIBNSL_STUB) += $(top_builddir)lib/libnsl.so
objclean-y += CLEAN_libnsl
-ifeq ($(DOPIC),y)
-$(top_builddir)lib/libnsl.so: $(top_builddir)lib/libnsl.a $(libc.depend)
-else
-$(top_builddir)lib/libnsl.so: $(libnsl_OUT)/libnsl_so.a $(libc.depend)
-endif
- $(call link.so,$(libnsl_FULL_NAME),$(ABI_VERSION))
- # link for backward compatibility
- $(call link.so,$(libnsl_FULL_NAME),0)
-
-$(libnsl_OUT)/libnsl_so.a: $(libnsl-so-y)
- $(Q)$(RM) $@
- $(do_ar)
-
-$(top_builddir)lib/libnsl.a: $(libnsl-a-y)
- $(Q)$(INSTALL) -d $(dir $@)
- $(Q)$(RM) $@
- $(do_ar)
-
CLEAN_libnsl:
$(do_rm) $(addprefix $(libnsl_OUT)/*., o os a)