On Fri, 10 Oct 2014 11:52:16 GMT, Martin Nowak wrote:

Is it possible to somehow do it with dub?

Well vibe.d does it with openssl https://github.com/rejectedsoftware/vibe.d. You would have add linker flags to your libssh package. Not sure if the pathes work out.

Yes, that's what I had in mind. Should have checked it first...
However, I still have a problem (sort of). In my project I want to use vibe.d alongside libssh2. If I prepare dub package for libssh2, each will have its own version of openssl. While .lib files could be kept separate, there can be only one .dll (unless I give it some funny name to distinguish it).

It would be best to be able to share these libraries across dub packages, but I guess that is currently impossible and very improbable in the future.

Thoughts?