linux/tools/bpf/bpftool
Jiong Wang 39b72ccdb2 tools: bpftool: add -DPACKAGE when including bfd.h
bfd.h is requiring including of config.h except when PACKAGE or
PACKAGE_VERSION are defined.

  /* PR 14072: Ensure that config.h is included first.  */
  #if !defined PACKAGE && !defined PACKAGE_VERSION
  #error config.h must be included before this header
  #endif

This check has been introduced since May-2012. It doesn't show up in bfd.h
on some Linux distribution, probably because distributions have remove it
when building the package.

However, sometimes the user might just build libfd from source code then
link bpftool against it. For this case, bfd.h will be original that we need
to define PACKAGE or PACKAGE_VERSION.

Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-01-17 01:15:05 +01:00
..
bash-completion tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
Documentation tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
cgroup.c tools: bpftool: remove new lines from errors 2018-01-04 12:28:46 +01:00
common.c tools: bpftool: report device information for offloaded programs 2017-12-31 16:12:23 +01:00
jit_disasm.c tools/bpftool: fix bpftool build with bintutils >= 2.9 2017-12-30 01:07:36 +01:00
json_writer.c tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
json_writer.h tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
main.c tools/bpftool: use version from the kernel source tree 2017-12-30 01:07:36 +01:00
main.h tools: bpftool: report device information for offloaded programs 2017-12-31 16:12:23 +01:00
Makefile tools: bpftool: add -DPACKAGE when including bfd.h 2018-01-17 01:15:05 +01:00
map.c tools: bpftool: alias show and list commands 2018-01-04 12:28:46 +01:00
prog.c bpftool: recognize BPF_PROG_TYPE_CGROUP_DEVICE programs 2018-01-16 02:49:49 +01:00