Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
4adf9752
Unverified
Commit
4adf9752
authored
Jul 23, 2020
by
per1234
Committed by
GitHub
Jul 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document compiler.libraries.ldflags property in platform specification (#840)
parent
99c646b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
docs/platform-specification.md
docs/platform-specification.md
+8
-1
No files found.
docs/platform-specification.md
View file @
4adf9752
...
...
@@ -189,16 +189,23 @@ The recipe can be built concatenating the following automatically generated prop
-
`{archive_file_path}`
: fully qualified archive file (ex. "/path/to/core.a"). This property was added in Arduino IDE
1.
6.6/arduino builder 1.0.0-beta12 as a replacement for
`{build.path}/{archive_file}`
.
-
`{archive_file}`
: the name of the core archive file (ex. "core.a")
-
`{compiler.libraries.ldflags}`
: the linking flags for precompiled libraries, which consist of automatically generated
`-L`
flags for the library path and
`-l`
flags for library files, as well as any custom flags provided via the
`ldflags`
field of library.properties. In order to support precompiled libraries, platform.txt must contain a
definition of
`compiler.libraries.ldflags`
, to which any automatically generated flags will be appended. Support for
precompiled libraries was added in Arduino IDE 1.8.6/arduino-builder 1.4.0.
For example the following is used for AVR:
compiler.c.elf.flags=-Os -Wl,--gc-sections
compiler.c.elf.cmd=avr-gcc
compiler.libraries.ldflags=
[......]
## Combine gc-sections, archives, and objects
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} -o "{build.path}/{build.project_name}.elf" {object_files} "{archive_file_path}" "-L{build.path}" -lm
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} -o "{build.path}/{build.project_name}.elf" {object_files}
{compiler.libraries.ldflags}
"{archive_file_path}" "-L{build.path}" -lm
#### Recipes for extraction of executable files and other binary data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment