Skip to content

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

@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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy