I'm trying to compile a file that weighs 3 kilobytes. I'm also linking a self-written dynamic library. I don't understand why the resulting executable file is so huge? After all, all libraries are present:
-rwxr-xr-x 1 root root 6.3M May 27 13:39 app
-rw-r--r-- 1 root root 2.9K May 27 12:57 app.d
-rw-r--r-- 1 root root 25K May 27 13:39 app.o
ldc2 -O app.d -L-lpq -L-lX11 -L-lXrandr -L-lm -L-lmira
linux-vdso.so.1 (0x00007fff3a5bf000)
libpq.so.5 => /usr/lib/libpq.so.5 (0x00007fe89f8a7000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fe89f763000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007fe89f756000)
libm.so.6 => /lib/libm.so.6 (0x00007fe89f611000)
libmira.so => /usr/lib/libmira.so (0x00007fe89f4c7000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fe89f4a6000)
librt.so.1 => /lib/librt.so.1 (0x00007fe89f499000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fe89f493000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fe89f479000)
libc.so.6 => /lib/libc.so.6 (0x00007fe89f2af000)
/lib64/ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2 (0x00007fe89f91b000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fe89f284000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fe89f27f000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fe89f275000)
libbsd.so.0 => /usr/lib/libbsd.so.0 (0x00007fe89f25c000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fe89f247000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007fe89f23a000)
libphobos2-ldc-shared.so.99 => /root/dlang/ldc-1.29.0/bin/../lib/libphobos2-ldc-shared.so.99 (0x00007fe89ed89000)
libdruntime-ldc-shared.so.99 => /root/dlang/ldc-1.29.0/bin/../lib/libdruntime-ldc-shared.so.99 (0x00007fe89ec3b000)
(dmd-2.100.0)