From: Iain Sandoe Date: Fri, 21 Mar 2025 17:57:48 +0000 (+0000) Subject: cobol, libgcobol: Currently libgcobol depends on libstdc++. X-Git-Tag: basepoints/gcc-16~892 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25db90ba08853f47f9b1868a44162e1c8b861711;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/cobol/gcobolspec.cc b/gcc/cobol/gcobolspec.cc index 7de41fd037a..364c14c8a70 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); }