summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/mips/Makefile17
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/