GCC architectures don't have libc++. Add -stdlib=libstdc++ on them to CXXFLAGS and LDFLAGS to fix build. PR: 234943 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl>