Skip to content

Makefile: UNDEF variable is not working as documented #5962

Description

@yschroeder

As I understand the documentation for UNDEF in Makefile.vars (which makes not too much sense), the UNDEF variable should undefine object files to avoid their use in the final executable to avoid multiple definitions of functions.

In my case I want to override the gpio implementation of the native cpu with my own implementation in the board.

However, the UNDEF variable works the other way around. It is given as an extra parameter to the final gcc call in Makefile.include. This results in the explicit use of the undefined files by the linker!

I think UNDEF should be used somewhere around here. It should filter the objects.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: build systemArea: Build systemType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions