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:
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';
Mar 11 2013