diff options
Diffstat (limited to 'libc')
| -rw-r--r-- | libc/Makefile | 6 | ||||
| -rw-r--r-- | libc/sysdeps/linux/mips/Makefile | 17 |
2 files changed, 23 insertions, 0 deletions
diff --git a/libc/Makefile b/libc/Makefile index dcd51bb1b..b03596712 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -71,6 +71,9 @@ $(LIBNAME) shared_$(LIBNAME) ar-target: subdirs done cp $(LIBNAME) shared_$(LIBNAME) $(AR) $(ARFLAGS) $(LIBNAME) misc/internals/static.o +ifeq ($(PTHREADS_NATIVE),y) + $(AR) d $(LIBNAME) libc-lowlevellock.os +endif $(RANLIB) $(LIBNAME) $(LIBNAME_TARGET): $(LIBNAME) @@ -79,6 +82,9 @@ $(LIBNAME_TARGET): $(LIBNAME) $(INSTALL) -m 644 $(LIBNAME) $(TOPDIR)lib shared: shared_$(LIBNAME) +ifeq ($(PTHREADS_NATIVE),y) + $(AR) d shared_$(LIBNAME) libc-tls.o libc-lowlevellock.o +endif $(LD) $(LDFLAGS) $(VERSION_SCRIPT) -soname=$(SHARED_MAJORNAME) -o $(SHARED_FULLNAME) \ --whole-archive shared_$(LIBNAME) \ $(TOPDIR)libc/misc/internals/interp.o --no-whole-archive \ 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/ |
