Thread overview
Static compiling with dmd
Dec 12, 2012
Zardoz
Dec 12, 2012
Jonathan M Davis
Dec 12, 2012
Minas Mina
December 12, 2012
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.
December 12, 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
December 12, 2012
On Wednesday, 12 December 2012 at 14:28:48 UTC, 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.

Try using -L-lyourlib