On Wednesday, 6 May 2015 at 12:41:21 UTC, wobbles wrote:
On Monday, 4 May 2015 at 20:34:32 UTC, Paul wrote:
Can some one tell me what this linker command means (or point
me at some docs) please:
dmd example.d -L-L. $@
AFAIK $@ is 'all the supplied arguments' so I don't understand
what it achieves.
(it's from the DAllegro5 example program, on Linux).
Cheers,
Paul
I'm guessing this command is to be called from a script
somewhere. So then it will just pass all the arguments passed
to that script to dmd.
Cant really tell without more info on how it's called, but
that's what it'll do.
The script in its entirety is:
#!/bin/sh
dmd -release -ofexample example.d -L-L. $@
I can compile from the prompt directly with
dmd example.d -L-L.
but I don't understand the syntax. dmd --help mentions
-Llinkerflag but what is '-L-L.' doing??
TIA
Paul