Thread overview | |||||
---|---|---|---|---|---|
|
March 11, 2013 gdc equivalent of -defaultlib | ||||
---|---|---|---|---|
| ||||
Dmd has the -debuglib and -defaultlib options which can be used to specifiy the name of the standard library (phobos). Is there a equivalent command line option for gdc? Kind Regards Benjamin Thaut |
March 11, 2013 Re: gdc equivalent of -defaultlib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjamin Thaut | Am Mon, 11 Mar 2013 19:27:07 +0100
schrieb Benjamin Thaut <code@benjamin-thaut.de>:
> Dmd has the -debuglib and -defaultlib options which can be used to specifiy the name of the standard library (phobos). Is there a equivalent command line option for gdc?
>
> Kind Regards
> Benjamin Thaut
There's -nophoboslib which makes sure libdruntime and libphobos are not linked. Then you can just use the normal -l flags to link against another library.
(There's also -nostdlib which also removes the C libraries)
|
March 11, 2013 Re: gdc equivalent of -defaultlib | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjamin Thaut Attachments:
| On 11 March 2013 18:27, Benjamin Thaut <code@benjamin-thaut.de> wrote: > Dmd has the -debuglib and -defaultlib options which can be used to specifiy the name of the standard library (phobos). Is there a equivalent command line option for gdc? > > Kind Regards > Benjamin Thaut > We have exactly the same: -defaultlib, -debuglib -nophoboslib, -nostdlib, -nodefaultlibs Regards -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0'; |
Copyright © 1999-2021 by the D Language Foundation