Fully statically linked binary

kinke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Jul 11 10:40:21 PDT 2017


On Tuesday, 11 July 2017 at 08:14:59 UTC, Jacob Carlborg wrote:
> With LDC it's possible to build a fully statically linked 
> binary using the "-static" flag. My question is: is it required 
> to invoke the compiler with the "-static" flag or is it enough 
> to invoke the linker with the "-static" flag?

It's only used for linking (in essence, forwarding `-static` to 
gcc) and doesn't affect the relocation model etc.


More information about the digitalmars-d-ldc mailing list