]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol, libgcobol: Currently libgcobol depends on libstdc++.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 21 Mar 2025 17:57:48 +0000 (17:57 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 21 Mar 2025 23:55:53 +0000 (23:55 +0000)
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 <iain@sandoe.co.uk>
gcc/cobol/gcobolspec.cc

index 7de41fd037a359b23e4fe693b7e11def76c68528..364c14c8a7004b0e652c5aaa9187313ccbfb2300 100644 (file)
@@ -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);
     }