From 37ad45d3e9a3af37518ada14896a528fd4b328e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Thu, 21 Jan 2016 08:28:39 +0100 Subject: [PATCH] sys/newlib: Place newlib includes first of the system includes --- sys/newlib/Makefile.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/newlib/Makefile.include b/sys/newlib/Makefile.include index 78211041e4..f7f24f6247 100644 --- a/sys/newlib/Makefile.include +++ b/sys/newlib/Makefile.include @@ -36,4 +36,5 @@ ifeq (,$(NEWLIB_INCLUDES)) NEWLIB_INCLUDES := $(addprefix -isystem ,$(wildcard $(dir $(shell which $(PREFIX)gcc))../$(TARGET_TRIPLE)/include)) endif -export INCLUDES += $(NEWLIB_INCLUDES) +# Newlib includes should go before GCC includes. +export INCLUDES := $(NEWLIB_INCLUDES) $(INCLUDES)