This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/84351] Provide dependency information also when linking
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Feb 2018 22:57:08 +0000
- Subject: [Bug other/84351] Provide dependency information also when linking
- Auto-submitted: auto-generated
- References: <bug-84351-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84351
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to jpakkane from comment #0)
> If linking supported generating dependency files like -M does for source
> compilations, this would not be a problem and
... and?
The main problem is that GCC doesn't do the linking, it just calls the linker.
GCC is not involved in resolving -lmydep to a file on disk, that's the linker.
So the feature would have to be added to the linker, not to GCC.