1From b7f14a800bbdad193f45695bc5b8c5173f3882ba Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Sun, 10 Feb 2019 17:51:05 +0100 4Subject: [PATCH] CMakeLists.txt: fix mbedtls libraries in bctoolbox.pc 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9bctoolbox.pc should not contain the full libraries path, path should be 10given by -L and library names by -l 11So sent back the fix already suggested by Jörg Krause in 12https://github.com/BelledonneCommunications/bctoolbox/pull/4 13 14Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> 15Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 16[Upstream status: 17https://github.com/BelledonneCommunications/bctoolbox/pull/7] 18--- 19 CMakeLists.txt | 5 ++--- 20 1 file changed, 2 insertions(+), 3 deletions(-) 21 22diff --git a/CMakeLists.txt b/CMakeLists.txt 23index 29f3eb6..b2f26c2 100644 24--- a/CMakeLists.txt 25+++ b/CMakeLists.txt 26@@ -101,9 +101,8 @@ else() 27 endif() 28 29 if(MBEDTLS_FOUND) 30- get_filename_component(mbedtls_library_path "${MBEDTLS_LIBRARIES}" PATH) 31- string(REPLACE ";" " " MBEDTLS_LIBRARIES_STR "${MBEDTLS_LIBRARIES}") 32- set(LIBS_PRIVATE "${LIBS_PRIVATE} ${MBEDTLS_LIBRARIES_STR}") 33+ get_filename_component(mbedtls_library_path "${MBEDTLS_LIBRARY}" PATH) 34+ set(LIBS_PRIVATE "${LIBS_PRIVATE} -L${mbedtls_library_path} -lmbedtls -lmbedcrypto -lmbedx509") 35 endif() 36 if(POLARSSL_FOUND) 37 get_filename_component(polarssl_library_path "${POLARSSL_LIBRARIES}" PATH) 38