In the template, libraries are linked as follows:
# Link OpenSSL in both the static library as the loadable extension
target_link_libraries(${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto)
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto)
When commenting out
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto)
quack.duckdb_extension still dynamically links OpenSSL. otool -l quack.duckdb_extension:
Load command 12
cmd LC_LOAD_DYLIB
cmdsize 72
name /opt/homebrew/opt/openssl@3/lib/libssl.3.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 3.0.0
compatibility version 3.0.0