From: Arnaldo Carvalho de Melo Date: Thu, 14 May 2015 19:55:18 +0000 (-0300) Subject: tools selftests: Fix 'clean' target with make 3.81 X-Git-Tag: v4.1.3~39 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f3ff4345ef597115869a227dbf738dde157f8521;p=users%2Fjedix%2Flinux-maple.git tools selftests: Fix 'clean' target with make 3.81 commit 60df4642a83546fa6ea8286f5094ce8c0906c3ec upstream. 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 Cc: David Ahern Cc: Ingo Molnar Cc: Michael Ellerman Link: http://lkml.kernel.org/r/20150514151225.GH23588@kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Shuah Khan Cc: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 95abddcd78397..f76830643086e 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -27,7 +27,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