When Configure attempts to determin whether the C++ compiler understands -fvisibility=hidden, it always concludes that it does. This is because it does the test link using the C compiler with CFLAGS, which at that time does not contain -fvisibility=hidden. The test adds -fvisibility=hidden to CXXFLAGS, but that does not get used in the test compile.
Fixed by commit 560f76227ccc848390095414e93d199e588b0c92
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.