Link against OpenSSL statically (#149)
Summary: Compile against a static version of OpenSSL for better compatibility with apps that already use OpenSSL in some fashion. Pull Request resolved: https://github.com/facebook/Sonar/pull/149 Reviewed By: priteshrnandgaonkar Differential Revision: D8804169 Pulled By: passy fbshipit-source-id: 4de66a77806a3b3f01b2cf5f253916f2cf6f48e8
This commit is contained in:
committed by
Facebook Github Bot
parent
2fa9cfe4e7
commit
c7de8b8d37
@@ -68,6 +68,6 @@ target_include_directories(${PACKAGE_NAME} PRIVATE
|
||||
)
|
||||
|
||||
set(OPENSSL_LINK_DIRECTORIES ${third_party_ndk}/OpenSSL/libs/${ANDROID_ABI}/)
|
||||
find_path(OPENSSL_LIBRARY libssl.so HINTS ${OPENSSL_LINK_DIRECTORIES})
|
||||
find_path(OPENSSL_LIBRARY libssl.a HINTS ${OPENSSL_LINK_DIRECTORIES})
|
||||
|
||||
target_link_libraries(${PACKAGE_NAME} folly rsocket glog double-conversion log event ${OPENSSL_LINK_DIRECTORIES}/libssl.so ${OPENSSL_LINK_DIRECTORIES}/libcrypto.so)
|
||||
target_link_libraries(${PACKAGE_NAME} folly rsocket glog double-conversion log event ${OPENSSL_LINK_DIRECTORIES}/libssl.a ${OPENSSL_LINK_DIRECTORIES}/libcrypto.a)
|
||||
|
||||
@@ -30,4 +30,3 @@ android {
|
||||
implementation project(':folly')
|
||||
}
|
||||
}
|
||||
//'armeabi-v7a'
|
||||
|
||||
Reference in New Issue
Block a user