sched_ext: Clean up -rdynamic and LDFLAGS in Makefiles
Status from this message: Applied to sched_ext/for-7.4.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tools/sched_ext: Drop the no-op -rdynamic from CFLAGStools/ | +1 | 1 reply | |
| 2/2 | selftests/sched_ext: Move -rdynamic to LDFLAGS and append to ittools/ | +2 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH sched_ext/for-7.4 0/2] sched_ext: Clean up -rdynamic and LDFLAGS in Makefiles
Building the demo schedulers and selftests with CC=clang-N fails under -Werror because CFLAGS passes the link-time flag -rdynamic to compile steps ($(CC) -c):
$ make CC=clang-21
clang-21: error: argument unused during compilation: '-rdynamic'
[-Werror,-Wunused-command-line-argument]Patch 1: Drop the inert -rdynamic from tools/sched_ext. Binaries remain byte-identical before and after.
Patch 2: Move -rdynamic to LDFLAGS and append with '+=' in selftests.
Thanks,
Cheng-Yang
---
Cheng-Yang Chou (2):
tools/sched_ext: Drop the no-op -rdynamic from CFLAGS selftests/sched_ext: Move -rdynamic to LDFLAGS and append to it
tools/sched_ext/Makefile | 2 +- tools/testing/selftests/sched_ext/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0