File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,6 +217,15 @@ elseif(APPLE)
217217 COMMAND ${CMAKE_COMMAND} -E copy ${OPENSSL_ROOT} /bin/openssl ${APP_DIR_NEW} /Contents/MacOS/
218218 COMMAND ${CMAKE_COMMAND} -E copy ${OPENSSL_ROOT} /lib/libcrypto.3.dylib ${APP_DIR_NEW} /Contents/Frameworks/
219219 COMMAND ${CMAKE_COMMAND} -E copy ${OPENSSL_ROOT} /lib/libssl.3.dylib ${APP_DIR_NEW} /Contents/Frameworks/
220+ # Fix dylib identities
221+ COMMAND install_name_tool -id @rpath/libcrypto.3.dylib ${APP_DIR_NEW} /Contents/Frameworks/libcrypto.3.dylib
222+ COMMAND install_name_tool -id @rpath/libssl.3.dylib ${APP_DIR_NEW} /Contents/Frameworks/libssl.3.dylib
223+ # Fix libssl -> libcrypto reference
224+ COMMAND install_name_tool -change ${OPENSSL_ROOT} /lib/libcrypto.3.dylib @rpath/libcrypto.3.dylib ${APP_DIR_NEW} /Contents/Frameworks/libssl.3.dylib
225+ # Fix openssl binary references and add rpath
226+ COMMAND install_name_tool -change ${OPENSSL_ROOT} /lib/libssl.3.dylib @rpath/libssl.3.dylib ${APP_DIR_NEW} /Contents/MacOS/openssl
227+ COMMAND install_name_tool -change ${OPENSSL_ROOT} /lib/libcrypto.3.dylib @rpath/libcrypto.3.dylib ${APP_DIR_NEW} /Contents/MacOS/openssl
228+ COMMAND install_name_tool -add_rpath @executable_path/../Frameworks ${APP_DIR_NEW} /Contents/MacOS/openssl
220229 DEPENDS deploy-qt
221230 COMMENT "Embedding openssl-tool"
222231 VERBATIM
You can’t perform that action at this time.
0 commit comments