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