modula-2, driver: Handle static-libstd++ for targets without static/dynamic
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 22 Dec 2022 19:00:13 +0000 (19:00 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 5 Jan 2023 12:48:00 +0000 (12:48 +0000)
commit2421470867f198c3aa57e0a7ab0d473aac4cdd38
treee21c9b07cd8f016e3502163316a448d76f6e4b74
parent29c3218618ef6177dc33871b26c8fbd9b21eabe1
modula-2, driver: Handle static-libstd++ for targets without static/dynamic

The follows the pattern used in C++ and D drivers to pass -static-libstdc++
onto the target driver to allow spec substitution of static libraries.

NOTE: The handling of Bstatic/dynamic and the possible use of static libgm2
libraries is unimplemented in this driver so far.

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

* gm2spec.cc (lang_specific_driver): Pass -static-libstdc++ on to
the target driver if the linker does not support Bstatic/dynamic.
gcc/m2/gm2spec.cc