author: Masahiro Yamada <masahiroy@kernel.org> 2020-07-01 00:06:25 +0900
committer: Masahiro Yamada <masahiroy@kernel.org> 2020-07-02 00:58:00 +0900
commit: 7f58b487e9ff3ff0f5f29a57172295a41f08a6b5
parent: b816b3db15f68690ee72a4a414624f8e82942b25
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ac2c61c37a73..bc48810d1655 100644
--- a/Makefile
+++ b/Makefile
@@ -970,8 +970,8 @@ LDFLAGS_vmlinux += --pack-dyn-relocs=relr
endif
# Align the bit size of userspace programs with the kernel
-KBUILD_USERCFLAGS += $(filter -m32 -m64, $(KBUILD_CFLAGS))
-KBUILD_USERLDFLAGS += $(filter -m32 -m64, $(KBUILD_CFLAGS))
+KBUILD_USERCFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS))
+KBUILD_USERLDFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS))
# make the checker run with the right architecture
CHECKFLAGS += --arch=$(ARCH)