author: Nathan Chancellor <nathan@kernel.org> 2021-04-22 13:19:14 -0700
committer: Masahiro Yamada <masahiroy@kernel.org> 2021-04-25 06:14:56 +0900
commit: f634ca650f724347892068489c7920631a3aac6a
parent: 82526ef43399a7556b860538041802042b3872c1
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/Makefile b/Makefile
index b14483742a67..a0319d0a6a86 100644
--- a/Makefile
+++ b/Makefile
@@ -1066,7 +1066,7 @@ export MODLIB
HOST_LIBELF_LIBS = $(shell pkg-config libelf --libs 2>/dev/null || echo -lelf)
has_libelf = $(call try-run,\
- echo "int main() {}" | $(HOSTCC) -xc -o /dev/null $(HOST_LIBELF_LIBS) -,1,0)
+ echo "int main() {}" | $(HOSTCC) $(KBUILD_HOSTLDFLAGS) -xc -o /dev/null $(HOST_LIBELF_LIBS) -,1,0)
ifdef CONFIG_STACK_VALIDATION
ifeq ($(has_libelf),1)