https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118005
--- Comment #9 from Sam James <sjames at gcc dot gnu.org> --- If they're internals, building the library with LTO and correct visibility annotations should handle that for you if you mean "I want inlining internally, but not for consumers".