From 2b1835d8463e43941d81fd6a6732bcc608e81cf8 Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Sun, 20 Mar 2011 04:20:23 +0100
Subject: [PATCH 140/396] Rules.mak: change the way -include is used

Other compilers do not expect absolute path after -include,
they want to find the included file by path search (-I).
While there, prefer $(TARGET_ARCH) before common path.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 Rules.mak |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Rules.mak b/Rules.mak
index d7cdaf9..4a89fe5 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -626,11 +626,11 @@ endif
 $(eval $(call check-gcc-var,-nostdlib))
 
 # Collect all CFLAGS components
-CFLAGS := -include $(top_srcdir)include/libc-symbols.h \
-	$(XWARNINGS) $(CPU_CFLAGS) $(SSP_CFLAGS) \
-	-nostdinc -I$(top_builddir)include -I$(top_srcdir)include -I. \
-	-I$(top_srcdir)libc/sysdeps/linux \
-	-I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)
+CFLAGS := $(XWARNINGS) $(CPU_CFLAGS) $(SSP_CFLAGS) \
+	-nostdinc -I$(top_builddir)include \
+	-I$(top_srcdir)include -include libc-symbols.h \
+	-I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH) \
+	-I$(top_srcdir)libc/sysdeps/linux -I.
 
 # We need this to be checked within libc-symbols.h
 ifneq ($(HAVE_SHARED),y)
-- 
1.7.0.4

