Cross Compiler
Jeroen Bollen
jbinero at gmail.com
Mon Mar 3 06:37:40 PST 2014
On Monday, 3 March 2014 at 14:31:09 UTC, Jeroen Bollen wrote:
> How to stop DMD from linking against any libraries? A simple
> program like this already links to quite a few libraries:
>
>> void main()
>> {
>> return;
>> }
>
>> linux-vdso.so.1 => (0x00007fffdf5fe000)
>> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
>>(0x00007f3ba9433000)
>> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
>>(0x00007f3ba912f000)
>> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1
>>(0x00007f3ba8f26000)
>> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
>>(0x00007f3ba8b5e000)
>> /lib64/ld-linux-x86-64.so.2 (0x00007f3ba9679000)
I'm guessing this is caused by the presence of the main method.
Why would a single method require all those libraries though?
More information about the Digitalmars-d
mailing list