https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121667
--- Comment #6 from Yi Qingliang <niqingliang2003 at gmail dot com> --- (In reply to Andrew Pinski from comment #2) > This is not a bug since you do -W,--exclude-libs,ALL . > > Basically if you link against a library which depends on the shared library > version of one library; you can't link your main program just against the > static library with `-W,--exclude-libs,ALL`. > elf does NOT have multi-namespaces while linking (loading is a different > story). I removed -W,--exclude-libs,ALL, no any difference, the result is same.