CMake fixes for OpenSSL (#274)

* CMake fixes for OpenSSL
* Fix missed ldl link
* Some refactor for static libraries linkage
* Change library linkage order (GNU feature)
This commit is contained in:
pokamest 2023-08-08 06:13:35 -07:00 committed by GitHub
parent 8fe1370a74
commit 520aaac31f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 88 deletions

View file

@ -232,7 +232,7 @@ if(APPLE)
endif()
if(LINUX AND NOT ANDROID)
set(LIBS ${LIBS} -static-libstdc++ -static-libgcc)
set(LIBS ${LIBS} -static-libstdc++ -static-libgcc -ldl)
link_directories(${CMAKE_CURRENT_LIST_DIR}/platforms/linux)
endif()