From: Brian Masney Date: Fri, 28 Mar 2025 18:38:58 +0000 (-0400) Subject: tools/bootconfig: specify LDFLAGS as an argument to CC X-Git-Tag: v6.16-rc1~71^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d81bab116b485643a08f2147165cc257b3734188;p=thirdparty%2Flinux.git 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 Signed-off-by: Masami Hiramatsu (Google) --- diff --git a/tools/bootconfig/Makefile b/tools/bootconfig/Makefile index d2713902ca5c6..90eb47c9d8de6 100644 --- a/tools/bootconfig/Makefile +++ b/tools/bootconfig/Makefile @@ -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)