From 841b23b470570d1490ca67d8bf296a75ed3a10fe Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Sun, 18 Oct 2009 19:20:24 -0700 Subject: [PATCH] --- yaml --- r: 169519 b: refs/heads/master c: 1abc7f5500fff8422f34826a006648d8741d83d3 h: refs/heads/master i: 169517: f6d2d267dbf85effab27e9604c4034399ec5b19e 169515: 1d8bbcb9efa8e16d7b54bc5b6b5692ef5582be6e 169511: f5839fd6245b38aa82639c0f88999c7866ac55f1 169503: 63994279f84e94a2df4b6511c866145c05b19106 v: v3 --- [refs] | 2 +- trunk/tools/perf/Makefile | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 85166845be2b..31699a7253a0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: db9f11e36d0125a5e3e595ea9ef2e4b89f7e8737 +refs/heads/master: 1abc7f5500fff8422f34826a006648d8741d83d3 diff --git a/trunk/tools/perf/Makefile b/trunk/tools/perf/Makefile index 2400e5068a2f..db89a6de9d06 100644 --- a/trunk/tools/perf/Makefile +++ b/trunk/tools/perf/Makefile @@ -431,8 +431,12 @@ ifeq ($(uname_S),Darwin) PTHREAD_LIBS = endif +ifneq ($(shell sh -c "(echo '\#include '; echo 'int main(void) { const char * version = gnu_get_libc_version(); return (long)version; }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o /dev/null $(ALL_LDFLAGS) > /dev/null 2>&1 && echo y"), y) + msg := $(error No gnu/libc-version.h found, please install glibc-dev[el]); +endif + ifneq ($(shell sh -c "(echo '\#include '; echo 'int main(void) { Elf * elf = elf_begin(0, ELF_C_READ_MMAP, 0); return (long)elf; }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o /dev/null $(ALL_LDFLAGS) > /dev/null 2>&1 && echo y"), y) - msg := $(error No libelf.h/libelf found, please install libelf-dev/elfutils-libelf-devel and glibc-dev[el]); + msg := $(error No libelf.h/libelf found, please install libelf-dev/elfutils-libelf-devel); endif ifdef NO_DEMANGLE