Skip to content

Commit d81bab1

Browse files
masneybmhiramat
authored andcommitted
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>
1 parent 9c8cede commit d81bab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/bootconfig/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
1818
all: $(ALL_PROGRAMS) test
1919

2020
$(OUTPUT)bootconfig: main.c include/linux/bootconfig.h $(LIBSRC)
21-
$(CC) $(filter %.c,$^) $(CFLAGS) -o $@
21+
$(CC) $(filter %.c,$^) $(CFLAGS) $(LDFLAGS) -o $@
2222

2323
test: $(ALL_PROGRAMS) test-bootconfig.sh
2424
./test-bootconfig.sh $(OUTPUT)

0 commit comments

Comments
 (0)