Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
fb3c2b2b
Commit
fb3c2b2b
authored
8 years ago
by
Cenk Gündoğan
Browse files
Options
Downloads
Patches
Plain Diff
newlib: don't use -isystem for default includes
parent
e6ad438a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/newlib/Makefile.include
+2
-5
2 additions, 5 deletions
sys/newlib/Makefile.include
with
2 additions
and
5 deletions
sys/newlib/Makefile.include
+
2
−
5
View file @
fb3c2b2b
...
@@ -17,6 +17,7 @@ endif
...
@@ -17,6 +17,7 @@ endif
export
LINKFLAGS
+=
-lc
-lnosys
export
LINKFLAGS
+=
-lc
-lnosys
ifeq
(1,$(USE_NEWLIB_NANO))
# Search for Newlib include directories
# Search for Newlib include directories
# Since Clang is not installed as a separate instance for each crossdev target
# 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)))
...
@@ -50,14 +51,10 @@ NEWLIB_INCLUDE_DIR ?= $(firstword $(wildcard $(NEWLIB_INCLUDE_PATTERNS)))
ifeq
(,$(NEWLIB_INCLUDE_DIR))
ifeq
(,$(NEWLIB_INCLUDE_DIR))
NEWLIB_INCLUDE_DIR
:=
$(
abspath
$(
wildcard
$(
dir
$(
shell which
$(
PREFIX
)
gcc
))
../
$(
TARGET_ARCH
)
/include
))
NEWLIB_INCLUDE_DIR
:=
$(
abspath
$(
wildcard
$(
dir
$(
shell which
$(
PREFIX
)
gcc
))
../
$(
TARGET_ARCH
)
/include
))
endif
endif
NEWLIB_INCLUDES
:=
-isystem
$(
NEWLIB_INCLUDE_DIR
)
ifeq
(1,$(USE_NEWLIB_NANO))
NEWLIB_NANO_INCLUDE_DIR
?=
$(
NEWLIB_INCLUDE_DIR
)
/nano
NEWLIB_NANO_INCLUDE_DIR
?=
$(
NEWLIB_INCLUDE_DIR
)
/nano
# newlib-nano overrides newlib.h and its include dir should therefore go before
# newlib-nano overrides newlib.h and its include dir should therefore go before
# the regular newlib include dir.
# the regular newlib include dir.
NEWLIB_INCLUDES
:=
-isystem
$(
NEWLIB_NANO_INCLUDE_DIR
)
$(
NEWLIB_INCLUDES
)
NEWLIB_INCLUDES
:=
-isystem
$(
NEWLIB_NANO_INCLUDE_DIR
)
endif
endif
# Newlib includes should go before GCC includes.
# Newlib includes should go before GCC includes.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment