diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-03-11 08:49:39 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-12 00:07:55 -0400 |
commit | 406764622fb71e5f4efb39ff111ef87713815f6d (patch) | |
tree | 8ca38df905e8ee68f8d787136b80a6e6a6496859 /tools/net | |
parent | fdfaf64e75397567257e1051931f9a3377360665 (diff) | |
download | talos-obmc-linux-406764622fb71e5f4efb39ff111ef87713815f6d.tar.gz talos-obmc-linux-406764622fb71e5f4efb39ff111ef87713815f6d.zip |
tools/net/Makefile: Define PACKAGE to fix build problems
Fixes the following build problem with binutils-2.24
gcc -Wall -O2 -c -o bpf_jit_disasm.o bpf_jit_disasm.c
In file included from bpf_jit_disasm.c:25:0:
/usr/include/bfd.h:35:2: error: #error config.h must be included
before this header
#error config.h must be included before this header
This is similar to commit 3ce711a6abc27abce1554e1d671a8762b7187690
"perf tools: bfd.h/libbfd detection fails with recent binutils"
See: https://sourceware.org/bugzilla/show_bug.cgi?id=14243
CC: David S. Miller <davem@davemloft.net>
CC: Daniel Borkmann <dborkman@redhat.com>
CC: netdev@vger.kernel.org
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/net')
-rw-r--r-- | tools/net/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/Makefile b/tools/net/Makefile index 004cd74734b6..ee577ea03ba5 100644 --- a/tools/net/Makefile +++ b/tools/net/Makefile @@ -12,7 +12,7 @@ YACC = bison all : bpf_jit_disasm bpf_dbg bpf_asm -bpf_jit_disasm : CFLAGS = -Wall -O2 +bpf_jit_disasm : CFLAGS = -Wall -O2 -DPACKAGE='bpf_jit_disasm' bpf_jit_disasm : LDLIBS = -lopcodes -lbfd -ldl bpf_jit_disasm : bpf_jit_disasm.o |