mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
tools/bootconfig: specify LDFLAGS as an argument to CC
Explicitly specify LDFLAGS as an argument to CC so that this can be overridden by the user. Link: https://lore.kernel.org/all/20250328183858.1417835-3-bmasney@redhat.com/ Signed-off-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
This commit is contained in:
committed by
Masami Hiramatsu (Google)
parent
9c8cedef3d
commit
d81bab116b
@@ -18,7 +18,7 @@ ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
|
||||
all: $(ALL_PROGRAMS) test
|
||||
|
||||
$(OUTPUT)bootconfig: main.c include/linux/bootconfig.h $(LIBSRC)
|
||||
$(CC) $(filter %.c,$^) $(CFLAGS) -o $@
|
||||
$(CC) $(filter %.c,$^) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
test: $(ALL_PROGRAMS) test-bootconfig.sh
|
||||
./test-bootconfig.sh $(OUTPUT)
|
||||
|
||||
Reference in New Issue
Block a user