OSDN Git Service

nptl: fix order of includes for out-of-tree builds
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 17 Jun 2010 17:46:29 +0000 (19:46 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 17 Jun 2010 17:46:29 +0000 (19:46 +0200)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Rules.mak

index fd0de49..f6c4b4a 100644 (file)
--- 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.