mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 10:12:45 +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:
parent
a946c2c5bd
commit
18a4ccf315
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user