summaryrefslogtreecommitdiffstats
path: root/libcpu/Makefile.am
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2017-07-18 14:12:36 +0200
committerMark Wielaard <[email protected]>2017-07-24 12:06:14 +0200
commit1609679b1ef3611c71a08900c2f6b94bb97d454d (patch)
tree24b3f6dfa5308e4c3a1ddb37b5097694a263ac7f /libcpu/Makefile.am
parentc8e16c12661d18e6ae724a6d89b81c0df9da365a (diff)
backends: Don't depend on linux/bpf.h to compile bpf disassembler.
We only need a few constants and one structure definition from linux/bpf. Just define those in a local lib/bpf.h file. This makes sure the bpf disassembler is always build and included even when elfutils is build on older GNU/Linux systems (and even on other platforms). Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libcpu/Makefile.am')
-rw-r--r--libcpu/Makefile.am2
1 files changed, 0 insertions, 2 deletions
diff --git a/libcpu/Makefile.am b/libcpu/Makefile.am
index 31fc906b..94de56ef 100644
--- a/libcpu/Makefile.am
+++ b/libcpu/Makefile.am
@@ -45,11 +45,9 @@ i386_gendis_SOURCES = i386_gendis.c i386_lex.l i386_parse.y
i386_disasm.o: i386.mnemonics $(srcdir)/i386_dis.h
x86_64_disasm.o: x86_64.mnemonics $(srcdir)/x86_64_dis.h
-if HAVE_LINUX_BPF_H
noinst_LIBRARIES += libcpu_bpf.a
libcpu_bpf_a_SOURCES = bpf_disasm.c
libcpu_bpf_a_CFLAGS = $(AM_CFLAGS) -Wno-format-nonliteral
-endif
%_defs: $(srcdir)/defs/i386
$(AM_V_GEN)m4 -D$* -DDISASSEMBLER $< > $@T