March 11, 2013
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
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
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';


Top | Discussion index | About this forum | D home