NATIVEINCLUDES Does not include USEMODULE_INCLUDES from log_printfnoformat #11603
Labels
Area: build system
Area: Build system
Platform: native
Platform: This PR/issue effects the native platform
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
If I try to build an application, which uses a module (log_printfnoformat) that requires an include path in USEMODULE_INCLUDES, but my build fails with:
I Only tested this with "USEMODULE = log_printfnoformat" so far, but the problem may also appear with other (pseudo-)modules.
Problem Description:
"USEMODULE = printfnoformat" invokes sys/log/Makefile.include
As you can see in the code the include directory of log_printfnoformat is correctly added to USEMODULE_INCLUDE. USEMODULE_INCLUDE is later appended to INCLUDES. Later INCLUDES is overwritten in boards/native/Makefile
I assume this should only add $NATIVEINCLUDES to INCLUDES and thus the last line should look like the following:
Changing this line results in working builds on my system. If anybody could back my assumption or provide a better solution I will happily create a small PR.
Alternatively one could reduce impact heavily with the following change in sys/log/Makefile.include
Steps to reproduce the issue
Expected results
Build should run without any error
Actual results
Build fails with compiler errors due to missing include path
Versions
The text was updated successfully, but these errors were encountered: