Building application with LDC and -flto=thin fails in link stage

Johan Engelen j at j.nl
Wed Mar 28 20:09:24 UTC 2018


On Wednesday, 28 March 2018 at 17:03:07 UTC, Seb wrote:
> 
> dub supports dflags and lflags in the config file. lflags are 
> the linker commands.

Please read the thread.

`lflags` is for passing flags to the _linker_ (i.e. those flags 
are prefixed with -L when passed to the _compiler_)

Here, what's needed is passing flags to the _compiler_ when it is 
invoked to perform the link step in the build.

-Johan



More information about the Digitalmars-d-learn mailing list