www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19106] New: Make -lpthread -lm -lrt -ldl --as-needed on Linux


          Issue ID: 19106
           Summary: Make -lpthread -lm -lrt -ldl --as-needed on Linux
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: vicluo96 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:

Jul 22 2018