Skip to content

duplicate linked libraries for EXTENSION_NAME, LOADABLE_EXTENSION_NAME #118

@0ax1

Description

@0ax1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions