On Friday, 12 July 2019 at 22:22:01 UTC, Andre Pany wrote: > I found it: > > ldc2 app.d -defaultlib=druntime-ldc-shared,phobos2-ldc-shared > -debuglib=druntime-ldc-debug-shared,phobos2-ldc-debug-shared `-link-defaultlib-shared` implies that and takes care of rpath as well.