If we want psabpf to operate as a shared library, we need to change it's build structure to do just this. Commit 8b247a3 attempted to do this, but it modified the libbpf build to be shared, which we would rather avoid. A better approach would be to first modify libbpf to add -fPIC to the non-shared library build, so we can then link the static library into the shared psabpf library, as 8b247a3 tried to do.
If we want psabpf to operate as a shared library, we need to change it's build structure to do just this. Commit 8b247a3 attempted to do this, but it modified the libbpf build to be shared, which we would rather avoid. A better approach would be to first modify libbpf to add
-fPIC
to the non-shared library build, so we can then link the static library into the shared psabpf library, as 8b247a3 tried to do.