Skip to content

sched_ext: Clean up -rdynamic and LDFLAGS in Makefiles

Cheng-Yang Chou sched-ext 1 version Applied

Status from this message: Applied to sched_ext/for-7.4.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2tools/sched_ext: Drop the no-op -rdynamic from CFLAGStools/sched_ext/Makefile+1 -11 reply
2/2selftests/sched_ext: Move -rdynamic to LDFLAGS and append to ittools/testing/selftests/sched_ext/Makefile+2 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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