Static compiling with dmd

Jonathan M Davis jmdavisProg at gmx.com
Wed Dec 12 10:33:07 PST 2012


On Wednesday, December 12, 2012 15:28:46 Zardoz wrote:
> How I can compile with static linking with dmd ?
> I try with dmd -L-static ....
> but i get this error :
> /usr/bin/ld: cannot find -lgcc_s
> 
> I used before gdc with -static options and owrked well on it, but
> I need to use now dmd.

At this point, you can't do it. You need to link manually using gcc if you 
want to do it.

http://d.puremagic.com/issues/show_bug.cgi?id=6952

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list