[git commit future 1/1] Rules.mak: change the way -include is used
Khem Raj
raj.khem at gmail.com
Sat Mar 19 18:51:25 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=b4aa4a25da244e886945b578488b47554f2b3897
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future
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 at gmx.net>
---
Rules.mak | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Rules.mak b/Rules.mak
index 0aa6843..080b24d 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -582,11 +582,11 @@ endif
NOSTDLIB_CFLAGS:=$(call check_gcc,-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.
ifneq ($(strip $(UCLIBC_EXTRA_CFLAGS)),"")
CFLAGS += $(call qstrip,$(UCLIBC_EXTRA_CFLAGS))
endif
--
1.7.3.4
More information about the uClibc-cvs
mailing list