SSL, BPF, lcap-ng and other libraries are in use by a static library, so they has to be linked while building applications with that static library, i.e. 'pkg-config --libs --static libopenvswitch' must return -lssl, -lcap-ng, etc. in the output for a successful build.
For dynamic library (non-private Libs) all these libraries will be dynamically linked to libopenvswitch.so, so the application will pick them up without having a direct dependency. Additionally, fixed the include directory, it should be just /usr/include, because application will include headers specifying the 'openvswitch' folder, e.g. #include <openvswitch/json.h>. And we have not only 'openvswitch', but also 'openflow' folder that users should be able to include. Signed-off-by: Ilya Maximets <[email protected]> --- lib/libopenvswitch.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libopenvswitch.pc.in b/lib/libopenvswitch.pc.in index 4c40a4caf..44fbb1f9f 100644 --- a/lib/libopenvswitch.pc.in +++ b/lib/libopenvswitch.pc.in @@ -7,5 +7,5 @@ Name: libopenvswitch Description: Open vSwitch library Version: @VERSION@ Libs: -L${libdir} -lopenvswitch -Libs.private: @LIBS@ +Libs.private: @LIBS@ @SSL_LIBS@ @CAPNG_LDADD@ @LIBBPF_LDADD@ Cflags: -I${includedir} -- 2.34.3 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
