From: Shuah Khan Date: Fri, 8 Sep 2017 01:57:43 +0000 (-0600) Subject: selftests: Makefile: clear LDFLAGS for make O=dir use-case X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52fd1d082398b928a86d4fdf33c9f3abe1bf7914;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git selftests: Makefile: clear LDFLAGS for make O=dir use-case kselftest target fails when object directory is specified to relocate objects. Inherited "LDFLAGS = -m" fails the test builds. Clear it. Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 26ce4f7168be..f4368db011ea 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -52,6 +52,10 @@ override LDFLAGS = override MAKEFLAGS = endif +ifneq ($(KBUILD_SRC),) +override LDFLAGS = +endif + BUILD := $(O) ifndef BUILD BUILD := $(KBUILD_OUTPUT)