summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak13
1 files changed, 10 insertions, 3 deletions
diff --git a/Rules.mak b/Rules.mak
index d3399b296..f70126e07 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -304,10 +304,17 @@ else
endif
ifeq ($(UCLIBC_HAS_THREADS),y)
+ifeq ($(strip $(UCLIBC_HAS_THREADS_NATIVE)),y)
+ PTNAME := nptl
+else
+ PTNAME := linuxthreads
+endif
+PTDIR := $(TOPDIR)libpthread/$(PTNAME)
# set up system dependencies include dirs (NOTE: order matters!)
-PTDIR := $(TOPDIR)libpthread/linuxthreads/
-PTINC := -I$(PTDIR)sysdeps/pthread \
- -I$(PTDIR)sysdeps/$(TARGET_ARCH)
+# psm: the next 2 are probably incorrect, the generic header will
+# win over the arch specific one
+PTINC := -I$(PTDIR)/sysdeps/pthread \
+ -I$(PTDIR)/sysdeps/$(TARGET_ARCH)
endif
ifeq ($(UCLIBC_BUILD_RELRO),y)