D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19106 - Make -lpthread -lm -lrt -ldl --as-needed on Linux target
Summary: Make -lpthread -lm -lrt -ldl --as-needed on Linux target
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-22 09:38 UTC by Vic Luo
Modified: 2024-12-13 18:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Vic Luo 2018-07-22 09:38:18 UTC
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
Comment 1 dlangBugzillaToGithub 2024-12-13 18:59:43 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19462

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB