From fb3c2b2bc9b5c70ea8399cefc7696e77044b7abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= <mail@cgundogan.de> Date: Mon, 7 Nov 2016 16:01:04 +0100 Subject: [PATCH] newlib: don't use -isystem for default includes --- sys/newlib/Makefile.include | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/newlib/Makefile.include b/sys/newlib/Makefile.include index 94e526e0db..5e425fc67f 100644 --- a/sys/newlib/Makefile.include +++ b/sys/newlib/Makefile.include @@ -17,6 +17,7 @@ endif export LINKFLAGS += -lc -lnosys +ifeq (1,$(USE_NEWLIB_NANO)) # Search for Newlib include directories # Since Clang is not installed as a separate instance for each crossdev target @@ -50,14 +51,10 @@ NEWLIB_INCLUDE_DIR ?= $(firstword $(wildcard $(NEWLIB_INCLUDE_PATTERNS))) ifeq (,$(NEWLIB_INCLUDE_DIR)) NEWLIB_INCLUDE_DIR := $(abspath $(wildcard $(dir $(shell which $(PREFIX)gcc))../$(TARGET_ARCH)/include)) endif - -NEWLIB_INCLUDES := -isystem $(NEWLIB_INCLUDE_DIR) - -ifeq (1,$(USE_NEWLIB_NANO)) NEWLIB_NANO_INCLUDE_DIR ?= $(NEWLIB_INCLUDE_DIR)/nano # newlib-nano overrides newlib.h and its include dir should therefore go before # the regular newlib include dir. - NEWLIB_INCLUDES := -isystem $(NEWLIB_NANO_INCLUDE_DIR) $(NEWLIB_INCLUDES) + NEWLIB_INCLUDES := -isystem $(NEWLIB_NANO_INCLUDE_DIR) endif # Newlib includes should go before GCC includes. -- GitLab