Closed zartbot closed 4 years ago
diff --git a/mk/include.mk b/mk/include.mk
index 4516944..7e06612 100644
--- a/mk/include.mk
+++ b/mk/include.mk
@@ -73,8 +73,14 @@ export CGO_LDFLAGS = \
-Wl,--no-as-needed \
-Wl,-export-dynamic
+ifndef NFF_GO_NO_BPF_SUPPORT
+export CGO_LDFLAGS += -lbpf
+endif
+
Hi
BPF library is specified in internal/low/low_bpf.go
file https://github.com/intel-go/nff-go/blob/master/internal/low/low_bpf.go which is compiled when go build
command is called with tags bpf
. Did you build and install libbpf
as specified in README.md
file in AF_XDP support
section?
some test code under /test/stability/ like "testMerge" , "testCksum" does not include tags, so cause make testing failure.
You are right. I fixed test targets and I am going to promote this change to a new release 0.9.1.
after check with mk/include.mk it may overwrite the CGO_LDFLAGS and which does not include -lbpf