mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 23:25:54 +00:00
406764622f
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 3ce711a6ab
"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>
35 lines
734 B
Makefile
35 lines
734 B
Makefile
prefix = /usr
|
|
|
|
CC = gcc
|
|
LEX = flex
|
|
YACC = bison
|
|
|
|
%.yacc.c: %.y
|
|
$(YACC) -o $@ -d $<
|
|
|
|
%.lex.c: %.l
|
|
$(LEX) -o $@ $<
|
|
|
|
all : bpf_jit_disasm bpf_dbg bpf_asm
|
|
|
|
bpf_jit_disasm : CFLAGS = -Wall -O2 -DPACKAGE='bpf_jit_disasm'
|
|
bpf_jit_disasm : LDLIBS = -lopcodes -lbfd -ldl
|
|
bpf_jit_disasm : bpf_jit_disasm.o
|
|
|
|
bpf_dbg : CFLAGS = -Wall -O2
|
|
bpf_dbg : LDLIBS = -lreadline
|
|
bpf_dbg : bpf_dbg.o
|
|
|
|
bpf_asm : CFLAGS = -Wall -O2 -I.
|
|
bpf_asm : LDLIBS =
|
|
bpf_asm : bpf_asm.o bpf_exp.yacc.o bpf_exp.lex.o
|
|
bpf_exp.lex.o : bpf_exp.yacc.c
|
|
|
|
clean :
|
|
rm -rf *.o bpf_jit_disasm bpf_dbg bpf_asm bpf_exp.yacc.* bpf_exp.lex.*
|
|
|
|
install :
|
|
install bpf_jit_disasm $(prefix)/bin/bpf_jit_disasm
|
|
install bpf_dbg $(prefix)/bin/bpf_dbg
|
|
install bpf_asm $(prefix)/bin/bpf_asm
|