www.digitalmars.com         C & C++   DMDScript  

D.gnu - gdc equivalent of -defaultlib

reply Benjamin Thaut <code benjamin-thaut.de> writes:
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
Mar 11 2013
next sibling parent Johannes Pfau <nospam example.com> writes:
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)
Mar 11 2013
prev sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
--047d7b472810ec6d5404d7ac3709
Content-Type: text/plain; charset=ISO-8859-1

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'; --047d7b472810ec6d5404d7ac3709 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 1= 1 March 2013 18:27, Benjamin Thaut <span dir=3D"ltr">&lt;<a href=3D"mailto:= code benjamin-thaut.de" target=3D"_blank">code benjamin-thaut.de</a>&gt;</s= pan> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex">Dmd has the -debuglib and -defaultlib option= s which can be used to specifiy the name of the standard library (phobos). = Is there a equivalent command line option for gdc?<br> <br> Kind Regards<span class=3D"HOEnZb"><font color=3D"#888888"><br> Benjamin Thaut<br> </font></span></blockquote></div><br><br></div><div class=3D"gmail_extra">W= e have exactly the same:<br><br>-defaultlib, -debuglib<br></div><div class= =3D"gmail_extra">-nophoboslib, -nostdlib, -nodefaultlibs<br></div><div clas= s=3D"gmail_extra"> <br clear=3D"all"><br></div><div class=3D"gmail_extra">Regards<br></div><di= v class=3D"gmail_extra">-- <br>Iain Buclaw<br><br>*(p &lt; e ? p++ : p) =3D= (c &amp; 0x0f) + &#39;0&#39;; </div></div> --047d7b472810ec6d5404d7ac3709--
Mar 11 2013