https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102574
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:a5b9ac0301c850a02d045b5630aa08b4ceab20c1 commit r9-9756-ga5b9ac0301c850a02d045b5630aa08b4ceab20c1 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)