summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2017-09-08 03:57:43 +0200
committerShuah Khan <shuahkh@osg.samsung.com>2017-09-21 15:55:37 +0200
commit52fd1d082398b928a86d4fdf33c9f3abe1bf7914 (patch)
treefa7f541bcb97bef902a170b98175abce2f90cda3 /tools
parentselftests: lib.mk: kselftest and kselftest-clean fail for make O=dir case (diff)
downloadlinux-52fd1d082398b928a86d4fdf33c9f3abe1bf7914.tar.xz
linux-52fd1d082398b928a86d4fdf33c9f3abe1bf7914.zip
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 <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/Makefile4
1 files changed, 4 insertions, 0 deletions
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)