https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121667
Bug ID: 121667
Summary: -static-libstdc++ not fully work when some so linked
depends on libstdc++.so
Product: gcc
Version: 15.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: niqingliang2003 at gmail dot com
Target Milestone: ---
Created attachment 62198
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62198&action=edit
test code
libb.so depends on libstdc++.so
a depends on libb.so.
when compiling a, the link option '-static-libstdc++' is ignored,
the compiled a will leave __cxa_pure_virtual undefined.