1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

newlib.mk: fix NEWLIB_INCLUDE_DIR not being set by PATTERNS

As NEWLIB_INCLUDE_DIR has already been set here, with an empty value, it is not
overwriting it because of the '?='.
This commit is contained in:
Gaëtan Harter 2018-06-29 18:43:40 +02:00
parent a946c2c5bd
commit 18a4ccf315
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -52,7 +52,7 @@ ifeq (,$(NEWLIB_INCLUDE_DIR))
# the patterns above. We use the -isystem gcc/clang argument to add the include
# directories as system include directories, which means they will not be
# searched until after all the project specific include directories (-I/path)
NEWLIB_INCLUDE_DIR ?= $(firstword $(dir $(wildcard $(addsuffix /newlib.h, $(NEWLIB_INCLUDE_PATTERNS)))))
NEWLIB_INCLUDE_DIR := $(firstword $(dir $(wildcard $(addsuffix /newlib.h, $(NEWLIB_INCLUDE_PATTERNS)))))
endif
# If nothing was found we will try to fall back to searching for a cross-gcc in