build: do not link with libssl if not needed

In most cases we only need OpenSSL libcrypto (crypto primitives) but
not libssl (tls).

Type: improvement

Change-Id: I9dce27d23d65bf46aea2d0f8aaf417240701efcc
Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:
Benoît Ganne
2023-01-04 17:56:58 +01:00
committed by Dave Wallace
parent 9bc72ac8de
commit f457f1fa02
4 changed files with 4 additions and 4 deletions

View File

@ -23,5 +23,5 @@ add_vpp_plugin(crypto_openssl
main.c
LINK_LIBRARIES
${OPENSSL_LIBRARIES}
${OPENSSL_CRYPTO_LIBRARIES}
)

View File

@ -156,7 +156,7 @@ add_vpp_plugin(dpdk
${DPDK_LINK_LIBRARIES}
LINK_LIBRARIES
${OPENSSL_LIBRARIES}
${OPENSSL_CRYPTO_LIBRARIES}
COMPONENT
vpp-plugin-dpdk

View File

@ -40,5 +40,5 @@ add_vpp_plugin(ikev2
ikev2_priv.h
LINK_LIBRARIES
${OPENSSL_LIBRARIES}
${OPENSSL_CRYPTO_LIBRARIES}
)

View File

@ -54,7 +54,7 @@ add_vpp_plugin(wireguard
wireguard_index_table.h
wireguard_api.c
LINK_LIBRARIES ${OPENSSL_LIBRARIES}
LINK_LIBRARIES ${OPENSSL_CRYPTO_LIBRARIES}
API_FILES
wireguard.api