Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arnaldo Carvalho de Melo and committed by
Shuah Khan
60df4642 3dce9284

+1 -1
+1 -1
tools/testing/selftests/Makefile
··· 28 28 # Makefile to avoid test build failures when test 29 29 # Makefile doesn't have explicit build rules. 30 30 ifeq (1,$(MAKELEVEL)) 31 - undefine LDFLAGS 31 + override LDFLAGS = 32 32 override MAKEFLAGS = 33 33 endif 34 34