On 04/01/2015 04:54 AM, Andrei Alexandrescu wrote: >> > > I don't understand this part. -conf= should essentially remove all > notion of .conf files whatsoever.
That's only half of the story, because without a config dmd doesn't know where to find druntime/phobos or how to link a binary. You really want one dmd.conf for each installed compiler/druntime/phobos triplet. To have something that works independent of the environment I have to use this on my Fedora installation. dmd -conf=/etc/dmd.conf # library dir not needed because libphobos2.a is in /usr/lib64 dmd -conf= -I/usr/include/dmd/druntime/import/ -I/usr/include/dmd/phobos/ -L--export-dynamic If I wanted to use my dmd-master I'd have to use one of these. /home/dawg/Code/D/DPL/dmd/src/dmd -conf=/home/dawg/Code/D/DPL/dmd/src/dmd.conf /home/dawg/Code/D/DPL/dmd/src/dmd -conf= -I/home/dawg/Code/D/DPL/druntime/import/ -I/home/dawg/Code/D/DPL/phobos -L-L/home/dawg/Code/D/DPL/phobos/generated/linux/release/64/ -L--export-dynamic