Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: link openssl 3.x with clamsubmit on macOS
When switching to openssl 3.x, linking with clamsubmit fails with undefined openssl symbols. The error message from Xcode is crazy obtuse: ld: initializer '_OPENSSL_cpuid_setup' is >4GB from start of image in 'anon' from /Users/clamav_jenkins_svc/clamav-mussels-cookbook/test/install-x86_64/lib/libcrypto.a(libcrypto-lib-x86_64cpuid.o) clang: error: linker command failed with exit code 1 (use -v to see invocation) Anyhow... It seems that we must explicitly link clamsubmit with openssl now in order for this to work. In addition to this change, I also found that the CMake FindRust.cmake module breaks the ability to build specifically for just x86_64 or arm64 (i.e. possibly cross-compiling. This commit includes a change to accommodate that scenario.
- Loading branch information