I tried that, it doesn't work to have both libphobos2.a and libphobos2.so. There's no linker switch to force picking one or the other.