Starting from DPDK 21.05, pkg-config
becomes the only official way to build DPDK apps. Because of it go-dpdk
uses #cgo pkg-config
directive to link against your DPDK distribution.
Go compiler may fail to accept some C compiler flags. You can fix it by submitting those flags to environment:
export CGO_CFLAGS_ALLOW=".*"
export CGO_LDFLAGS_ALLOW=".*"
Only dynamic linking is viable at this point.