linux/tools/build
Wang Nan cf9162c290 tools build: Check basic headers for test-compile feature checker
An i386 binary can be linked correctly even without correct headers.
Which causes problem. For exmaple:

 $ mv /tmp/oxygen_root/usr/include/gnu/stubs-32.h{,.bak}
 $ make tools/perf
 Auto-detecting system features:
 ...                         dwarf: [ on  ]
 [SNIP]
   GEN      common-cmds.h
   CC       perf-read-vdso32
 In file included from /tmp/oxygen_root/usr/include/features.h:388:0,
                  from /tmp/oxygen_root/usr/include/stdio.h:27,
                  from perf-read-vdso.c:1:
 /tmp/oxygen_root/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
  # include <gnu/stubs-32.h>
                           ^
 compilation terminated.
 ...

In this patch we checks not only compiler and linker, but also basic
headers in test-compile test case, make it fail on a platform
lacking correct headers.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
Link: http://lkml.kernel.org/r/1453893742-20603-1-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-01-27 11:59:32 -03:00
..
Documentation tools build: Build fixdep helper from perf and basic libs 2015-09-28 15:50:55 -03:00
feature tools build: Check basic headers for test-compile feature checker 2016-01-27 11:59:32 -03:00
tests tools build: Build fixdep helper from perf and basic libs 2015-09-28 15:50:55 -03:00
.gitignore perf build: Add fixdep to .gitignore 2015-10-20 10:43:28 -03:00
Build tools build: Add fixdep dependency helper 2015-09-28 15:50:55 -03:00
Build.include tools build: Make the fixdep helper part of the build process 2015-09-28 15:50:55 -03:00
fixdep.c tools build: Add fixdep dependency helper 2015-09-28 15:50:55 -03:00
Makefile tools build: Use fixdep with OUTPUT path prefix 2015-11-26 16:32:24 -03:00
Makefile.build tools build: Make the fixdep helper part of the build process 2015-09-28 15:50:55 -03:00
Makefile.feature tools build: Allow subprojects select all feature checkers 2016-01-26 12:12:48 -03:00
Makefile.include tools build: Use fixdep with OUTPUT path prefix 2015-11-26 16:32:24 -03:00