Darwin, D: Fix bootstrap when target does not support -Bstatic/dynamic.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 5 Oct 2021 18:54:30 +0000 (19:54 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 5 Oct 2021 19:54:51 +0000 (20:54 +0100)
commite24760533b62bb7068e63eb8da49dbca2837d38d
treee36cd784ed1235ad6cccc7d5ffea4ab44763a387
parentd4c470c376b4cb82c9a0b7e8a4b88c44d5e4289d
Darwin, D: Fix bootstrap when target does not support -Bstatic/dynamic.

This fixes a bootstrap fail because saw_static_libcxx was unused for
targets without support for -Bstatic/dynamic.

The fix applied pushes the -static-libstdc++ back onto the command
line, which allows a target to substitute a static version of the
c++ standard library using specs.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/d/ChangeLog:

* d-spec.cc (lang_specific_driver): Push the -static-libstdc++
option back onto the command line for targets without support
for -Bstatic/dynamic.
gcc/d/d-spec.cc