diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2025-03-21 17:57:48 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2025-03-21 23:55:53 +0000 |
commit | 25db90ba08853f47f9b1868a44162e1c8b861711 (patch) | |
tree | abeb3f1d60b993d5381575fdd3ec6a2a04a5f65e | |
parent | 827a1471666de2fff8799c3bcd5f54ab24caba80 (diff) | |
download | gcc-25db90ba08853f47f9b1868a44162e1c8b861711.zip gcc-25db90ba08853f47f9b1868a44162e1c8b861711.tar.gz gcc-25db90ba08853f47f9b1868a44162e1c8b861711.tar.bz2 |
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 <iain@sandoe.co.uk>
-rw-r--r-- | gcc/cobol/gcobolspec.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cobol/gcobolspec.cc b/gcc/cobol/gcobolspec.cc index 7de41fd..364c14c 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); } |