Yeah invoking the linker manually works fine. To save me from that each time i've actually added '-L-lphobos2' to the end of 'DFLAGS' in '/etc/dmd.conf' so phobos is always before curl in the linker argument list. When the program is compiled '-L-lphobos2' appears twice in the args but that's no big deal (i hope :p ). Thanks.