From 36a7d2962d813a16fa5fec5d0e614eebeb247759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ignacio=20Alamos=20Aste?= Date: Tue, 22 Mar 2016 14:46:16 +0100 Subject: [PATCH] Makefile: Newlib: Added pattern to NEWLIB_INCLUDE_PATTERN --- 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 a3a06196f6..5afff12d34 100644 --- a/sys/newlib/Makefile.include +++ b/sys/newlib/Makefile.include @@ -28,11 +28,12 @@ export LINKFLAGS += -lc -lnosys # Ubuntu seem to put a copy of the newlib headers in the same place as # Gentoo crossdev, but we prefer to look at /etc/alternatives first. # On OSX, newlib includes are possibly located in -# /usr/local/opt/arm-none-eabi*/arm-none-eabi/include +# /usr/local/opt/arm-none-eabi*/arm-none-eabi/include or /usr/local/opt/gcc-arm/arm-none-eabi/include NEWLIB_INCLUDE_PATTERNS ?= \ /etc/alternatives/gcc-$(TARGET_ARCH)-include \ /usr/$(TARGET_ARCH)/include \ /usr/local/opt/$(TARGET_ARCH)*/$(TARGET_ARCH)/include \ + /usr/local/opt/gcc-*/$(TARGET_ARCH)/include \ # # Use the wildcard Makefile function to search for existing directories matching # the patterns above. We use the -isystem gcc/clang argument to add the include