Skip to content

[feature request] add a way to add ldflags even without precompiled libraries #754

Open
@nerdralph

Description

@nerdralph

Bug Report

library.properties ldflags is ignored unless precompiled=true

Current behavior

After failing to get ldflags to work, I checked the source and found it is only used with precompiled libraries.

Expected behavior

ldflags, when specified, should always get added to the link line.

Environment

arduino-cli.exe Version: 0.10.0 Commit: ec5c3ed
Win7e/mingw32

Additional context

I'm writing a bootloader library, and was trying to use the --section-start linker option.
While reviewing the code, I also noticed there is an undocumented precompiled=full option for library.properties.

Metadata

Metadata

Assignees

Labels

topic: build-processRelated to the sketch build processtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions