https://issues.dlang.org/show_bug.cgi?id=19106
Issue ID: 19106 Summary: Make -lpthread -lm -lrt -ldl --as-needed on Linux target Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: viclu...@gmail.com Current implementation links these libraries under all circumstances. However, for libc-free programming these libraries are redundant. This is one of the show stoppers toward `dmd`-based libc-free programming without invoking `cc` manually. Another is https://github.com/dlang/dmd/pull/794. Related code: https://github.com/dlang/dmd/blob/6371942b1bf26dc6c65cc7e0668bc82e1974c18d/src/dmd/link.d#L652 --