Remove libphobos dependency
David Friedman
dvdfrdmn at users.ess-eff.net
Mon Jul 14 04:39:50 PDT 2008
Vincent Richomme wrote:
> Vincent Richomme a écrit :
>> e-t172 a écrit :
>>> Lars Ivar Igesund a écrit :
>>>> As for GDC specific, see the --nostdlib switch or something along those
>>>> lines.
>>>
>>> It's -nophoboslib, actually.
>>
>> In which file should I add this parameter ?
> Hum maybe you mean when calling gdc compiler.
>
-nophoboslib in the link command is the way to go. This lets you link
against libgcc without having the link libgphobos and the the system
pthread libraries.
If you are using the GNU linker, you can also reduce link dependencies
by compiling with -ffunction-sections and -fdata-sections and then link
with -Wl,-gc-sections.
More information about the D.gnu
mailing list