linux/tools/build/feature
David Carrillo-Cisneros 9961aa665b tools build: Fix feature detection redefinion of build flags
This change is a follow up of https://lkml.org/lkml/2017/2/2/16

The patch above avoided redefining CC, CXX and PKG_CONFIG in feature
detection. The patch was not merged due to a unsolved concern with the
-MD flag.

Later, commit c8c188679c ("tools build: Use the same CC for feature
detection and actual build") did the change for CC and CXX but not
PKG_CONFIG.

This patch makes PKG_CONFIG consistent with CC and CXX and moves the -MD
to CFLAGS, as suggested by Jiri in the thread above.

Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Paul Turner <pjt@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Simon Que <sque@chromium.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20170412064919.92449-3-davidcc@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-04-13 11:48:48 -03:00
..
.gitignore
Makefile tools build: Fix feature detection redefinion of build flags 2017-04-13 11:48:48 -03:00
test-all.c tools build: Add test for sched_getcpu() 2017-03-03 19:07:19 -03:00
test-backtrace.c
test-bionic.c
test-bpf.c bpf tools: Fix syscall argument 2016-04-28 09:58:57 -03:00
test-clang.cpp tools build: Add feature detection for clang 2016-12-05 15:51:43 -03:00
test-compile.c tools build: Check basic headers for test-compile feature checker 2016-01-27 11:59:32 -03:00
test-cplus-demangle.c
test-cxx.cpp tools build: Add feature detection for g++ 2016-10-05 19:59:35 -03:00
test-dwarf_getlocations.c perf probe: Check if dwarf_getlocations() is available 2016-04-06 10:44:28 -03:00
test-dwarf.c
test-fortify-source.c
test-get_cpuid.c tools build: Add test for presence of __get_cpuid() gcc builtin 2015-09-17 13:14:35 -03:00
test-glibc.c perf tools: Fix build errors with mipsel-linux-uclibc compiler 2015-08-05 16:56:16 -03:00
test-gtk2-infobar.c
test-gtk2.c
test-hello.c
test-jvmti.c tools build: Add jvmti feature detection support 2016-11-14 12:40:32 -03:00
test-libaudit.c
test-libbabeltrace.c
test-libbfd.c
test-libcrypto.c perf build: Add libcrypto feature detection 2016-02-05 09:46:45 -03:00
test-libdw-dwarf-unwind.c
test-libelf-gelf_getnote.c perf tools: Add feature detection for gelf_getnote() 2016-07-12 15:20:41 -03:00
test-libelf-getphdrnum.c
test-libelf-getshdrstrndx.c perf build: Add feature detection for libelf's elf_getshdrstrndx() 2016-07-04 19:38:59 -03:00
test-libelf-mmap.c
test-libelf.c
test-libnuma.c
test-libperl.c
test-libpython-version.c
test-libpython.c
test-libslang.c
test-libunwind-aarch64.c perf build: Add build-test for libunwind cross-platforms support 2016-05-11 12:24:58 -03:00
test-libunwind-arm.c perf build: Add build-test for libunwind cross-platforms support 2016-05-11 12:24:58 -03:00
test-libunwind-debug-frame-aarch64.c perf build: Add build-test for debug-frame on arm/arm64 2016-05-11 12:24:58 -03:00
test-libunwind-debug-frame-arm.c perf build: Add build-test for debug-frame on arm/arm64 2016-05-11 12:24:58 -03:00
test-libunwind-debug-frame.c
test-libunwind-x86_64.c perf build: Add build-test for libunwind cross-platforms support 2016-05-11 12:24:58 -03:00
test-libunwind-x86.c perf build: Add build-test for libunwind cross-platforms support 2016-05-11 12:24:58 -03:00
test-libunwind.c
test-llvm-version.cpp perf build: Check LLVM version in feature check 2016-12-06 13:21:55 -03:00
test-llvm.cpp perf build: Check LLVM version in feature check 2016-12-06 13:21:55 -03:00
test-lzma.c
test-numa_num_possible_cpus.c tools build: Add test for presence of numa_num_possible_cpus() in libnuma 2015-09-17 13:14:35 -03:00
test-pthread-attr-setaffinity-np.c
test-sched_getcpu.c tools build: Add test for sched_getcpu() 2017-03-03 19:07:19 -03:00
test-sdt.c perf build: Add sdt feature detection 2016-07-13 23:09:09 -03:00
test-stackprotector-all.c
test-sync-compare-and-swap.c
test-timerfd.c
test-zlib.c