I need to set -defaultlib=libphobos2.so on linux. Can't use DFLAGS environment variable, since it doesn't seem to work (I guess the issue is this http://d.puremagic.com/issues/show_bug.cgi?id=1660).

DUB supports dflags, but as far as I can tell this only applies during the build step, whereas I need to set the switch during the link step.

Any workarounds for this currently?