diff options
| author | Cheng-Yang Chou <yphbchou0911@gmail.com> | 2026-09-09 23:17:22 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-09-09 07:51:14 -1000 |
| commit | 60204f773b3851ab8320c83c84b0bd1f67189f76 (patch) | |
| tree | a8e70dfa8deae894aedbed6103a08ccd5b5e9a3f /tools/perf/scripts/python | |
| parent | 570355c81dbf3bc88e45e3ce5b3f5938cfda11bb (diff) | |
selftests/sched_ext: Drop -rdynamic and stop clobbering LDFLAGS
CFLAGS passes the link-time flag -rdynamic to compile steps ($(CC) -c),
where it is unused. Under -Werror, Clang fails the build:
$ make CC=clang-21
clang-21: error: argument unused during compilation: '-rdynamic'
[-Werror,-Wunused-command-line-argument]
Nothing needs the exported symbols. Separately, LDFLAGS uses '=' rather than
'+=', discarding USERLDFLAGS from lib.mk.
Drop -rdynamic and append LDFLAGS with '+='. This fixes builds with
CC=clang-N while preserving USERLDFLAGS.
v2: Drop -rdynamic instead of moving it to LDFLAGS (Tejun Heo).
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
