khanat-opennel-code/patch/libcrypto.patch

26 lines
1 KiB
Diff
Raw Normal View History

2018-06-09 17:07:21 +00:00
diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
2018-11-04 15:18:02 +00:00
index 4e5292f2a..40cc432b8 100644
2018-06-09 17:07:21 +00:00
--- a/code/CMakeLists.txt
+++ b/code/CMakeLists.txt
2018-11-04 15:18:02 +00:00
@@ -244,6 +244,20 @@ IF(WITH_NEL)
LIST(APPEND CURL_LIBRARIES ${IDN_LIBRARY})
ENDIF()
+ # Solve issue : "md5.c:(.text+0x12): undefined reference to `MD5_Init'
+ # libcrypto
+ FIND_LIBRARY(LIBCRYPTO_LIBRARY NAMES libcryto crypto PATHS /usr/lib/x86_64-linux-gnu)
+ IF(LIBCRYPTO_LIBRARY)
+ MESSAGE("-- Found crypto (amd64): ${LIBCRYPTO_LIBRARY}")
+ SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${LIBCRYPTO_LIBRARY})
+ ELSE()
+ FIND_LIBRARY(LIBCRYPTO_LIBRARY NAMES libcryto crypto PATHS /usr/lib)
+ IF(LIBCRYPTO_LIBRARY)
+ MESSAGE("-- Found crypto: ${LIBCRYPTO_LIBRARY}")
+ SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${LIBCRYPTO_LIBRARY})
+ ENDIF()
+ ENDIF()
+
2018-11-04 15:18:02 +00:00
# CURL Macports version can depend on libidn, libidn2, libintl, libpsl and libiconv too
IF(APPLE)
FIND_LIBRARY(INTL_LIBRARY intl)