summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-04 15:25:39 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-04 15:25:39 +0000
commitc0b31e50087228fd0efd17b4703e1fc3099cb3b9 (patch)
treed096ea49ce7f35362aef00d1f330867f557980fc /Rules.mak
parent75e3be2c706ebd829b5d544dd20b4a00ac4520ea (diff)
Use PTDIR in libpthread/Makefile too, add new PTNAME being nptl or linuxthreads. sjhill, I know you kill my keyboard, but please read my added comments, thanks.
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)