-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Makefile: UNDEF variable is not working as documented #5962
Copy link
Copy link
Closed
Labels
Area: build systemArea: Build systemArea: Build systemType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: build systemArea: Build systemArea: Build systemType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)The issue reports a bug / The PR fixes a bug (including spelling errors)