diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-07-31 03:17:26 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-07-31 03:17:26 +0000 |
| commit | 4e4163c84b41138f68634bd60300f6407ceec8df (patch) | |
| tree | 057561d6c68551e5616345ae6d173e589226b5bb /libc/sysdeps/linux | |
| parent | 5907a96392145dcc56d004010f54fbe935e40841 (diff) | |
| download | uClibc-alpine-4e4163c84b41138f68634bd60300f6407ceec8df.tar.bz2 uClibc-alpine-4e4163c84b41138f68634bd60300f6407ceec8df.tar.xz | |
Properly link in needed TLS functions for the static C library. Added the new low-level locking primitives to the C library for both static and shared. Added the new file 'dl-tls.c' from glibc which should be the final code necessary to fully link all the libraries for a NPTL-based uClibc.
Diffstat (limited to 'libc/sysdeps/linux')
| -rw-r--r-- | libc/sysdeps/linux/mips/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/Makefile b/libc/sysdeps/linux/mips/Makefile index caa332dd6..67524daac 100644 --- a/libc/sysdeps/linux/mips/Makefile +++ b/libc/sysdeps/linux/mips/Makefile @@ -31,6 +31,12 @@ CSRC=__longjmp.c brk.c setjmp_aux.c mmap.c __syscall_error.c \ cacheflush.c pread_write.c sysmips.c _test_and_set.c #sigaction.c COBJS=$(patsubst %.c,%.o, $(CSRC)) +ifeq ($(PTHREADS_NATIVE),y) +COBJS += $(PTDIR)sysdeps/$(TARGET_ARCH)/libc-tls.o \ + $(PTDIR)sysdeps/unix/sysv/linux/libc-lowlevellock.o \ + $(PTDIR)sysdeps/unix/sysv/linux/libc-lowlevellock.os +endif + OBJS=$(SOBJS) $(COBJS) OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) @@ -81,6 +87,17 @@ $(TOPDIR)lib/crtn.o: $(AR) $(ARFLAGS) $(TOPDIR)lib/crtn.o endif +ifeq ($(PTHREADS_NATIVE),y) +$(PTDIR)sysdeps/$(TARGET_ARCH)/libc-tls.o: + $(MAKE) -C $(PTDIR)sysdeps/$(TARGET_ARCH) libc-tls.o + +$(PTDIR)sysdeps/unix/sysv/linux/libc-lowlevellock.o: + $(MAKE) -C $(PTDIR)sysdeps/unix/sysv/linux libc-lowlevellock.o + +$(PTDIR)sysdeps/unix/sysv/linux/libc-lowlevellock.os: + $(MAKE) -C $(PTDIR)sysdeps/unix/sysv/linux libc-lowlevellock.os +endif + headers: $(LN) -fs ../libc/sysdeps/linux/mips/sgidefs.h $(TOPDIR)/include/ # $(LN) -fs ../libc/sysdeps/linux/mips/regdef.h $(TOPDIR)/include/ |
