All of lore.kernel.org
 help / color / mirror / Atom feed
* make -C tools clean failure on older systems
@ 2015-05-14 15:12 Arnaldo Carvalho de Melo
  2015-05-14 15:39 ` Shuah Khan
  0 siblings, 1 reply; 7+ messages in thread
From: Arnaldo Carvalho de Melo @ 2015-05-14 15:12 UTC (permalink / raw)
  To: Shuah Khan
  Cc: Michael Ellerman, Ingo Molnar, David Ahern, Linux Kernel Mailing List

Hi,

	In:

 -------------
commit 67d8712dcc70aa16d8e14a52eb73870e3cbddfc2
Author: Shuah Khan <shuahkh@osg.samsung.com>
Date:   Wed Mar 18 11:57:39 2015 -0600

    selftests: Fix build failures when invoked from kselftest target

 -------------

You cleaned two variables using different methods, any reason for that?

I asked because the 'undefine' method causes it to fail in older
systems:

[acme@rhel5 linux]$ make -C tools/ clean
<SNIP>
  CLEAN    python
make[1]: Leaving directory `/home/acme/git/linux/tools/perf'
  DESCEND  testing/selftests
make[1]: Entering directory
`/home/acme/git/linux/tools/testing/selftests'
Makefile:30: *** missing separator.  Stop.
make[1]: Leaving directory
`/home/acme/git/linux/tools/testing/selftests'
make: *** [selftests_clean] Error 2
make: Leaving directory `/home/acme/git/linux/tools'

 ----------------------------------

[acme@rhel5 linux]$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-redhat-linux-gnu
[acme@rhel5 linux]$

Wonder if it would be ok to use:

diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
index 95abddcd7839..f76830643086 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
 
 ------------------------------------------


- Arnaldo

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-14 20:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-14 15:12 make -C tools clean failure on older systems Arnaldo Carvalho de Melo
2015-05-14 15:39 ` Shuah Khan
2015-05-14 15:54   ` Arnaldo Carvalho de Melo
2015-05-14 17:42     ` Ingo Molnar
2015-05-14 20:00       ` Arnaldo Carvalho de Melo
2015-05-14 18:29     ` Shuah Khan
2015-05-14 19:48       ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.