diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/alpha/Makefile | 9 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/Makefile | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/alpha/Makefile b/libc/sysdeps/linux/alpha/Makefile index c37858380..45e2ece62 100644 --- a/libc/sysdeps/linux/alpha/Makefile +++ b/libc/sysdeps/linux/alpha/Makefile @@ -32,6 +32,10 @@ COBJS=$(patsubst %.c,%.o, $(CSRC)) OBJS=$(SOBJS) $(COBJS) +ifeq ($(PTHREADS_NATIVE),y) +COBJS += $(PTDIR)sysdeps/$(TARGET_ARCH)/libc-tls.o +endif + OBJ_LIST=../../../obj.sysdeps.$(TARGET_ARCH) all: $(OBJ_LIST) @@ -76,6 +80,11 @@ $(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 +endif + headers: $(LN) -fs ../libc/sysdeps/linux/alpha/fpu_control.h $(TOPDIR)/include/ diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index 84b29ac53..0ef5922eb 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -21,6 +21,10 @@ include $(TOPDIR)Rules.mak SRCS = $(wildcard *.c) +ifeq ($(strip $(PTHREADS_NATIVE)),y) +SRCS := $(filter-out fork.c,$(SRCS)) +endif + ifeq ($(strip $(EXCLUDE_BRK)),y) SRCS := $(filter-out sbrk.c,$(SRCS)) endif |