Thread overview | |||||
---|---|---|---|---|---|
|
December 12, 2012 Static compiling with dmd | ||||
---|---|---|---|---|
| ||||
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 Re: Static compiling with dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zardoz | 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 Re: Static compiling with dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zardoz | 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
|
Copyright © 1999-2021 by the D Language Foundation