소스 검색

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>
Arnaldo Carvalho de Melo 10 년 전
부모
커밋
60df4642a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/testing/selftests/Makefile

+ 1 - 1
tools/testing/selftests/Makefile

@@ -28,7 +28,7 @@ TARGETS_HOTPLUG += memory-hotplug
 # Makefile to avoid test build failures when test
 # Makefile to avoid test build failures when test
 # Makefile doesn't have explicit build rules.
 # Makefile doesn't have explicit build rules.
 ifeq (1,$(MAKELEVEL))
 ifeq (1,$(MAKELEVEL))
-undefine LDFLAGS
+override LDFLAGS =
 override MAKEFLAGS =
 override MAKEFLAGS =
 endif
 endif