I am currently in the process of trying to embed DPDK into a project utilizing meson's subproject so have some interest in this patch now.  To Bruce's question, I believe default_library parameter that would be passed when including the subproject would correctly handle flipping between static and shared for the dependency.

Still learning/figuring out meson (and hoping this gets attached to the patch discussion).