https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104708
Bug ID: 104708 Summary: RV64: gcc does not pass all library directories to linker Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rui314 at gmail dot com Target Milestone: --- I'm the author of the mold linker (https://github.com/rui314/mold). As far as I know, gcc always passes all library paths to the linker by -L<dir>, but I got a bug report that that's not the case on RV64. It is reported that gcc does not pass some obvious paths such as `-L/usr` or `-L/usr/lib`. Can gcc pass all library paths to the linker on RV64?