digitalmars.D.bugs - [Issue 15218] New: DMD should link dynamically to libphobos by default
- via Digitalmars-d-bugs (28/28) Oct 17 2015 https://issues.dlang.org/show_bug.cgi?id=15218
https://issues.dlang.org/show_bug.cgi?id=15218 Issue ID: 15218 Summary: DMD should link dynamically to libphobos by default Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: samjnaa gmail.com Since a long time (even of the latest stable release 2.068.2) DMD by default links in libphobos statically as part of all executables produced by it. AFAICS C and C++ compilers by default don't link in libc or libstdc++, and I don't see why DMD (and LDC, perhaps GDC too) is different. Apart from that this is a needlessly wasteful utilization of user disk space (though today hard/soft memory may be considered cheap), to the person newly testing the D waters, it makes it appear as if even a Hello World in D is much much more bloated than in C/C++/<insert the name of another compiled-but-by-default-dynamically-linked language here>... Therefore please make it so that DMD (and thus hopefully LDC and GDC too) links to libphobos dynamically and not statically by default. If any rare need makes it so that somebody needs a statically linked executable, presumably that would not be too hard to achieve. Note: I *don't* think this is a dup of bug 987 which was for D1... --
Oct 17 2015