From: Brian Masney <bmas...@redhat.com>

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.

Signed-off-by: Brian Masney <bmas...@redhat.com>

diff --git a/tools/bootconfig/Makefile b/tools/bootconfig/Makefile
index blahblah..blahblah 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)

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3771

-- 
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to