Blog post: using dynamic libraries in dub

Martin Nowak code+news.digitalmars at dawg.eu
Wed Dec 20 08:09:53 UTC 2017


On 12/19/2017 06:58 PM, Neia Neutuladh wrote:
> From the "it's a hacky workaround but it's what we've got" department:
> how to use dynamic libraries in dub, with GtkD as the example.

At some point `dub build` should get a `--shared` option to change the
meaning of `library` target types from `staticLibrary` to
`dynamicLibrary`. The shared libs could be linked with absolute paths.

http://code.dlang.org/package-format?lang=sdl#target-types
https://github.com/dlang/dub/issues/571


More information about the Digitalmars-d-announce mailing list