dmd.conf... again

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 12 05:21:09 PDT 2015


On 13/08/2015 12:16 a.m., Atila Neves wrote:
> I'm trying to use dmd on a VM where I don't have root privileges (don't
> ask). I can't copy dmd.conf to /etc. According to the docs, I should be
> able to use a dmd.conf that's in the same dir as dmd itself, or in my
> home directory, or even specifying -conf=. None of these seems to tell
> dmd where to find phobos.
>
> I've also tried setting DFLAGS myself, but under no circumstances is dmd
> passing the -L where phobos is to ld, so I can compile but not link
> (well, I can if I use gcc!). Also tried dmd -L-L/path/to/phobos.
>
> Does anyone have a clue why this doesn't work? My dmd.conf looks like this:
>
> [Environment]
> DFLAGS=-I/nobackup/dlang/phobos/ -I/nobackup/dlang/druntime/import
> -L-L/nobackup/dlang/download/dmd2/linux/lib64
>
> Atila

Perhaps this small snippet from my Windows install might shred some 
light. Specifically the LIB property.

[Environment32]
LIB="%@P%\..\lib"
LINKCMD=%@P%\link.exe


[Environment64]
LIB="%@P%\..\lib64"


More information about the Digitalmars-d-learn mailing list