https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102574
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:41e21afc427ffe4a320616d4a454144b1e93a670 commit r10-10167-g41e21afc427ffe4a320616d4a454144b1e93a670 Author: Iain Buclaw <ibuc...@gdcproject.org> Date: Sun Oct 3 16:02:24 2021 +0200 d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library Adds handling of `-static-libstc++' in the gdc driver, so that libstdc++ is appropriately linked if libstdc++ is either needed or seen on the command-line. PR d/102574 gcc/d/ChangeLog: * d-spec.cc (lang_specific_driver): Link libstdc++ statically if -static-libstdc++ was given on command-line. (cherry picked from commit c86a16b07b76604a8e3d556f135babab80e2b747)