summaryrefslogtreecommitdiffstats
path: root/Rules.mak
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-10-06 04:07:21 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-10-06 04:07:21 +0000
commitc237bf341806759207379e5958a65c26f3cc3970 (patch)
treeb0c6ffb1d179c25260245549624194f9bd8b8c2e /Rules.mak
parent29a33929c807d5c9b5b5092716c871ceb2fae8a1 (diff)
downloaduClibc-alpine-c237bf341806759207379e5958a65c26f3cc3970.tar.bz2
uClibc-alpine-c237bf341806759207379e5958a65c26f3cc3970.tar.xz
Sync with trunk.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak33
1 files changed, 20 insertions, 13 deletions
diff --git a/Rules.mak b/Rules.mak
index 9ecabf1ec..68cc43294 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -304,20 +304,22 @@ 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)
-ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
-PTDIR := $(TOPDIR)libpthread/nptl/
-PTINC := -I$(PTDIR)compat \
- -I$(PTDIR)sysdeps/unix/sysv/linux/$(TARGET_ARCH) \
- -I$(PTDIR)sysdeps/$(TARGET_ARCH) \
- -I$(PTDIR)sysdeps/unix/sysv/linux \
- -I$(PTDIR)sysdeps/pthread \
- -I$(PTDIR)sysdeps/pthread/bits \
- -I$(PTDIR)sysdeps/generic \
- -include $(PTDIR)compat/libc-symbols.h
+ifeq ($(strip $(UCLIBC_HAS_THREADS_NATIVE)),y)
+PTINC := -I$(PTDIR)compat \
+ -I$(PTDIR)sysdeps/unix/sysv/linux/$(TARGET_ARCH) \
+ -I$(PTDIR)sysdeps/$(TARGET_ARCH) \
+ -I$(PTDIR)sysdeps/unix/sysv/linux \
+ -I$(PTDIR)sysdeps/pthread \
+ -I$(PTDIR)sysdeps/pthread/bits \
+ -I$(PTDIR)sysdeps/generic \
+ -include $(PTDIR)compat/libc-symbols.h
#
# Test for TLS if NPTL support was selected.
#
@@ -335,6 +337,11 @@ gcc_tls_test_fail:
@echo "####";
@exit 1;
endif
+else
+# 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
endif