-
Notifications
You must be signed in to change notification settings - Fork 5
Description
For my use case I would like to statically link against mbedtls. I would be fine with having an option named "link-system-libraries" which would skip the calls to .linkSystemLibrary(...)
. The user would be expected the link against the library, I'm fine with libssh2
not pulling in the dependency and requiring the user to have it their own build.zig.zon.
But I'm not sure if this is the best option, I saw that zlib
use b.systemIntegrationOption(...)
, but I haven't found a way for how this option can be provided through b.dependency(...)
. Because in my application I would like to have 2 modes, first statically linked against mbedtls, seconds dynamically linked against openssl. But from what I have found b.systemIntegrationOption
can only be provided through CLI, I would like to change it through b.dependency
. Am I missing something? Is there a way to use b.systemIntegrationOption
in the way that I want?
What do you think? Which method should be used? The "link-system-libraries" flag or b.systemIntegrationOption()
?