• R
    perf tools: Remove hardcoded include paths for elfutils · a7112397
    Robert Morell 提交于
    This change removes the use of hardcoded absolute "/usr/include/elfutils" paths
    from the perf build.  The problem with hardcoded paths is that it prevents them
    from being overridden by $prefix or by -I in CFLAGS (e.g., for cross-compiling
    purposes).
    
    Instead, just include the "elfutils/" subdirectory as a relative path when
    files are needed from that directory.
    
    Tested by building perf:
    - Cross-compiled for ARM on x86_64
    - Built natively on x86_64
    - Built on x86_64 with /usr/include/elfutils moved to another location
      and manually included in CFLAGS
    Acked-by: NMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    LKML-Reference: <1289945793-31441-1-git-send-email-rmorell@nvidia.com>
    Signed-off-by: NRobert Morell <rmorell@nvidia.com>
    Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    a7112397
probe-finder.h 2.5 KB