aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hiawatha/fix-mbedtls-underlinking.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/hiawatha/fix-mbedtls-underlinking.patch')
-rw-r--r--testing/hiawatha/fix-mbedtls-underlinking.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/hiawatha/fix-mbedtls-underlinking.patch b/testing/hiawatha/fix-mbedtls-underlinking.patch
new file mode 100644
index 0000000000..bd2ec2f3c4
--- /dev/null
+++ b/testing/hiawatha/fix-mbedtls-underlinking.patch
@@ -0,0 +1,22 @@
+--- ./CMakeLists.txt.orig
++++ ./CMakeLists.txt
+@@ -114,7 +114,7 @@
+ #add_definitions(-DMBEDTLS_THREADING_PTHREAD -DMBEDTLS_THREADING_C)
+ add_subdirectory(mbedtls)
+ endif()
+- set(MBEDTLS_LIBRARY "mbedtls")
++ set(MBEDTLS_LIBRARIES "mbedtls" "mbedx509" "mbedcrypto")
+ endif()
+
+ # Hiawatha
+@@ -144,8 +144,8 @@
+ target_link_libraries(wigwam ${CRYPT_LIBRARY})
+ target_link_libraries(hiawatha ${CRYPT_LIBRARY} pthread ${Z_LIBRARY})
+ if(ENABLE_TLS)
+- target_link_libraries(hiawatha ${MBEDTLS_LIBRARY})
+- target_link_libraries(wigwam ${MBEDTLS_LIBRARY})
++ target_link_libraries(hiawatha ${MBEDTLS_LIBRARIES})
++ target_link_libraries(wigwam ${MBEDTLS_LIBRARIES})
+ if(NOT USE_SYSTEM_MBEDTLS)
+ set_target_properties(hiawatha PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/hiawatha)
+ set_target_properties(wigwam PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/hiawatha)