d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 3 Oct 2021 14:02:24 +0000 (16:02 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Mon, 4 Oct 2021 15:07:30 +0000 (17:07 +0200)
commitc86a16b07b76604a8e3d556f135babab80e2b747
tree565a1b89cf65a6ee3dd20e003871f4c54ab702b0
parentc4ee0965371c9b243cca1305b443f54c5e4e236a
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.
gcc/d/d-spec.cc