summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@kernel.org>2015-05-14 21:55:18 +0200
committerShuah Khan <shuahkh@osg.samsung.com>2015-05-26 23:58:09 +0200
commit60df4642a83546fa6ea8286f5094ce8c0906c3ec (patch)
treeb2c83881995ebcd435a6c894608bb79d8f43fb78 /tools/testing
parentselftests/futex: Add .gitignore (diff)
downloadlinux-60df4642a83546fa6ea8286f5094ce8c0906c3ec.tar.xz
linux-60df4642a83546fa6ea8286f5094ce8c0906c3ec.zip
tools selftests: Fix 'clean' target with make 3.81
Make 3.81 doesn't have the 'undefine' command. Using undefine to clear LDFLAGS fails when make version 3.81 is used. Fix it to use override to clear LDFLAGS. Tested-by: Shuah Khan <shuahkh@osg.samsung.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Link: http://lkml.kernel.org/r/20150514151225.GH23588@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index ebac6b84dfa1..56b11cdaa2e4 100644
--- a/tools/testing/selftests/Makefile
+++ b/tools/testing/selftests/Makefile
@@ -28,7 +28,7 @@ TARGETS_HOTPLUG += memory-hotplug
# Makefile to avoid test build failures when test
# Makefile doesn't have explicit build rules.
ifeq (1,$(MAKELEVEL))
-undefine LDFLAGS
+override LDFLAGS =
override MAKEFLAGS =
endif