[Issue 19106] New: Make -lpthread -lm -lrt -ldl --as-needed on Linux target

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 22 09:38:18 UTC 2018


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: nobody at puremagic.com
          Reporter: vicluo96 at 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

--


More information about the Digitalmars-d-bugs mailing list