Improve Makefile portability and debugging
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 8 repliesIn review
- v13 patches 7 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Makefile: Conditionally add -mno-omit-leaf-frame-pointerMakefile | +7 | 1 reply | |
| 2/6 | Makefile: Improve compiler flag detection for -fcf-protectionMakefile | +12 | 1 reply | |
| 3/6 | Makefile: Explicitly run the 'test' target in the tests directoryMakefile | +1 | 1 reply | |
| 4/6 | Makefile: Remove redundant GCC version checkMakefile | +0 | 2 replies | |
| 5/6 | Makefile: Print BPF tool versions for debuggingMakefile | +4 | 1 reply | |
| 6/6 | gitignore: Exclude Serena and Claude Code metadata.gitignore | +2 | 1 reply |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Derek Barbosa |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | A-b |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [stalld v2 0/6] Improve Makefile portability and debugging
This patch series improves the stalld build system to be more portable across different architectures and compiler toolchains while adding better debugging capabilities. The main motivation is to eliminate hard-coded compiler version checks that were brittle and could fail on non-standard toolchains or different architectures.
The changes replace minimum version checks with direct compiler feature detection tests, ensuring that compiler flags are only used when actually supported. This approach tests each flag by attempting to compile a minimal test program, making the build system resilient to variations in compiler implementations across architectures like x86_64, aarch64, s390x, i686, and powerpc. Additionally, the series adds build environment information output and cleans up redundant checks to improve maintainability.
The series also includes minor improvements to explicitly specify the test target invocation and exclude development environment metadata from version control.
Wander Lairson Costa (6):
Makefile: Conditionally add -mno-omit-leaf-frame-pointer
Makefile: Improve compiler flag detection for -fcf-protection
Makefile: Explicitly run the 'test' target in the tests directory
Makefile: Remove redundant GCC version check
Makefile: Print BPF tool versions for debugging
gitignore: Exclude Serena and Claude Code metadata
.gitignore | 2 ++ Makefile | 42 ++++++++++++++++++++++++------------------ 2 files changed, 26 insertions(+), 18 deletions(-)
---
Signature · 1 line
2.51.1