So I think in order to enable "true" dynamic loading, I'll need to generate PIC for druntime and phobos, and then link liblib.so like this:dmd -fPIC -c lib.d gcc -shared lib.o -o liblib.so -L/path/to/phobos -lphobos2Is that correct?
Yes, that is correct.The other thing missing is a phobos2.so for dynamic runtime linking.
-rt