summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/Makefile4
1 files changed, 4 insertions, 0 deletions
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