https://gcc.gnu.org/g:25db90ba08853f47f9b1868a44162e1c8b861711
commit r15-8661-g25db90ba08853f47f9b1868a44162e1c8b861711 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Fri Mar 21 17:57:48 2025 +0000 cobol, libgcobol: Currently libgcobol depends on libstdc++. We need to add libstdc++ to link lines even when the link is not '-static' since libgcobol depends on libstdc++. gcc/cobol/ChangeLog: * gcobolspec.cc (lang_specific_driver): Add libstdc++ for any link line. Signed-off-by: Iain Sandoe <i...@sandoe.co.uk> Diff: --- gcc/cobol/gcobolspec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cobol/gcobolspec.cc b/gcc/cobol/gcobolspec.cc index 7de41fd037a3..364c14c8a700 100644 --- a/gcc/cobol/gcobolspec.cc +++ b/gcc/cobol/gcobolspec.cc @@ -600,7 +600,7 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options, { add_arg_lib(DL_LIBRARY, static_in_general); } - if( need_libstdc && static_in_general ) + if( need_libstdc ) { add_arg_lib(STDCPP_LIBRARY, static_in_general); }