aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2017-09-07 19:57:43 -0600
committerShuah Khan <shuahkh@osg.samsung.com>2017-09-21 07:55:37 -0600
commit52fd1d082398b928a86d4fdf33c9f3abe1bf7914 (patch)
treefa7f541bcb97bef902a170b98175abce2f90cda3 /tools/testing/selftests
parentselftests: lib.mk: kselftest and kselftest-clean fail for make O=dir case (diff)
downloadwireguard-linux-52fd1d082398b928a86d4fdf33c9f3abe1bf7914.tar.xz
wireguard-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/testing/selftests')
-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)