According to the GitHub/rejectedsoftware/dub there is "Support for DMD,
GDC and LDC (common DMD flags are translated automatically)." Please
elaborate because I don't exactly understand what that means. I've to to
install LDC and use it instead of DMD but this doesn't seem to help
because after changing the second to last line of dub/build.sh to:

ldc2 -ofbin/dub -g -d-debug -w -property -Isource $* $LIBS source/app.d

I get a slew of linker errors:

andrew@goldeneye:~/dub$ ./build.sh
bin/dub.o: In function _Dmain':<br>/home/andrew/dub/source/app.d:79: undefined reference to <br>D3dub8internal10vibecompat4core3log11setLogLevelFNbE3dub8internal10vibecompat4core3log8LogLevelZv'
/home/andrew/dub/source/app.d:97: undefined reference to
`
D3dub9compilers8compiler11getCompilerFAyaZC3dub9compilers8compiler8Compiler'
/home/andrew/dub/source/app.d:108: undefined reference to
_D3dub3dub3Dub7__ClassZ'<br>/home/andrew/dub/source/app.d:108: undefined reference to <br>D3dub3dub3Dub6vtblZ'
/home/andrew/dub/source/app.d:108: undefined reference to
`
D3dub3dub3Dub6initZ'
/home/andrew/dub/source/app.d:108: undefined reference to
`_D3dub3dub23defaultPackageSuppliersFZAC3dub15packagesupplier15PackageSupplier'
/home/andrew/dub/source/app.d:108: undefined reference to
`_D3dub3dub3Dub6
ctorMFAC3dub15packagesupplier15PackageSupplierZC3dub3dub3Dub'
/home/andrew/dub/source/app.d:122: undefined reference to
_D3dub8internal10vibecompat4inet4path4Path6__initZ'<br>/home/andrew/dub/source/app.d:122: undefined reference to <br>D3dub8internal10vibecompat4inet4path4Path6_initZ'
...
...
[SNIP]

My guess is this is due to ldc2 lacking automatic dependency
resolution that rdmd has.

Please confirm that this is the case or point me in the right direction
if I have missed something important regarding configuring dub to use
with LDC.

Thanks,
Andrew