When building mesa with gcc -static-libgcc -static-libstdc++ options, I noticed that
libtool is linking in a weird way the dri drivers (gallium and mesa), hence making them dependent on the shared libstdc++.
I did work around it by hiding the shared libstdc++ while I was building mesa.
To be more accurate: the .so and .la files from the toolchain libstdc++
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1309.