Am 22.06.2016 um 11:51 schrieb gleb:
Sönke Ludwig wrote:
I'm pleased to announce the release of the first
stable version of the
DUB package manager. Stable in this case means that
Hello!
That's great! But...
Is "DFLAGS="-defaultlib=libphobos2.so" dub build" still
the only way to build dynamically linked binaries?
What about standard options to build/link against
".so's"?
Thank You!
Do you mean building a shared library, or linking against the shared
version of Phobos? The former case should automatically add -defaultlib,
if targetType is set to "dynamicLibrary" in the package recipe. In the
latter case, it has to be specified dynamically. Using DFLAGS is a
possibility, or putting it in the "dflags" field of the recipe.