Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make -lpthread -lm -lrt -ldl --as-needed on Linux target #19462

Open
dlangBugzillaToGithub opened this issue Jul 22, 2018 · 0 comments
Open

Make -lpthread -lm -lrt -ldl --as-needed on Linux target #19462

dlangBugzillaToGithub opened this issue Jul 22, 2018 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Vic Luo reported this on 2018-07-22T09:38:18Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=19106

CC List

  • Vic Luo

Description

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant