aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hiawatha/fix-mbedtls-underlinking.patch
blob: bd2ec2f3c477204af0a54257a659ed5771dba937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)