From cfb9575e01ec422236670870c2dc36d7ffcd986b Mon Sep 17 00:00:00 2001 From: Diego Santa Cruz Date: Wed, 20 Sep 2017 10:57:46 +0200 Subject: [PATCH] libcoap-1.pc.in: do not unnecessarily expose DTLS libs to users The SSL lib used to implement DTLS is only used internally by libcoap, so it is not necessary and sometimes harmful to expose it via the pkg-config file. Only when doing static linking is it necessary to link the SSL lib, this is done via the "Libs.private: pkg-config directive. --- libcoap-1.pc.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcoap-1.pc.in b/libcoap-1.pc.in index 723e9a16..f1c1c339 100644 --- a/libcoap-1.pc.in +++ b/libcoap-1.pc.in @@ -7,5 +7,6 @@ Name: @PACKAGE_NAME@ Description: C-Implementation of CoAP. Version: @PACKAGE_VERSION@ URL: @PACKAGE_URL@ -Libs: -L${libdir} -lcoap-@LIBCOAP_API_VERSION@ @DTLS_LIBS@ -Cflags: -I${includedir} @DTLS_CFLAGS@ +Libs: -L${libdir} -lcoap-@LIBCOAP_API_VERSION@ +Libs.private: @DTLS_LIBS@ +Cflags: -I${includedir}