summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-17 19:46:29 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-17 19:46:29 +0200
commit7453d422c9b9febd886df0a2fafdea55297328b9 (patch)
tree51ff706ad9ad366d7c20aed1f33bbed0d7e31282 /Rules.mak
parent150a0c95535578ac5ebabdeda59e5399d3bb44e1 (diff)
nptl: fix order of includes for out-of-tree builds
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak11
1 files changed, 7 insertions, 4 deletions
diff --git a/Rules.mak b/Rules.mak
index fd0de49e8..f6c4b4ad4 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -636,14 +636,17 @@ endif
PTDIR := libpthread/$(PTNAME)
# set up system dependencies include dirs (NOTE: order matters!)
ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
-PTINC:= -I$(top_srcdir)$(PTDIR) \
- -I$(top_srcdir)$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/$(TARGET_SUBARCH) \
+PTINC:= -I$(top_builddir)$(PTDIR) \
+ -I$(top_srcdir)$(PTDIR) \
+ -I$(top_srcdir)$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/$(TARGET_SUBARCH) \
-I$(top_srcdir)$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH) \
+ -I$(top_builddir)$(PTDIR)/sysdeps/$(TARGET_ARCH) \
-I$(top_srcdir)$(PTDIR)/sysdeps/$(TARGET_ARCH) \
+ -I$(top_builddir)$(PTDIR)/sysdeps/unix/sysv/linux \
-I$(top_srcdir)$(PTDIR)/sysdeps/unix/sysv/linux \
-I$(top_srcdir)$(PTDIR)/sysdeps/pthread \
- -I$(top_srcdir)$(PTDIR)/sysdeps/pthread/bits \
- -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) \
+ -I$(top_srcdir)$(PTDIR)/sysdeps/pthread/bits \
+ -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) \
-I$(top_srcdir)ldso/include
#
# Test for TLS if NPTL support was selected.