gdc equivalent of -defaultlib

Johannes Pfau nospam at example.com
Mon Mar 11 13:19:09 PDT 2013


Am Mon, 11 Mar 2013 19:27:07 +0100
schrieb Benjamin Thaut <code at 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)


More information about the D.gnu mailing list