https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87758
Bug ID: 87758 Summary: --print-file-name= ignores -L Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: John.Ericson at Obsidian dot Systems Target Milestone: --- Not respecting -L makes for confusing behavior. I'm surprised there was no issue for this before, as this behavior is probably quite old. --print-prog-name= likewise doesn't use PATH, but at least in that case gcc will also use just -B to find as/ld, so this is honest. [I take some issue with ignoring PATH, but that is a separate issue.] A --print-include-name= using -I (and maybe variants for -isystem, and -iquote) would also be useful primitives.