https://gcc.gnu.org/g:7c076b9ae0a9ee200314172c682edbc9811a2699

commit r17-4757-g7c076b9ae0a9ee200314172c682edbc9811a2699
Author: Xavier Del Campo Romero <[email protected]>
Date:   Tue Sep 29 16:01:49 2026 +0200

    cobol: Make libposix always available
    
        This library includes POSIX bindings for COBOL that must be always
        made available to users, rather than being limited to the IBM and MF
        dialects.
    
    gcc/cobol/ChangeLog:
    
            * gcobolspec.cc (lang_specific_driver): Init need_libposix to true.

Diff:
---
 gcc/cobol/gcobolspec.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/cobol/gcobolspec.cc b/gcc/cobol/gcobolspec.cc
index e4e2ad0033bd..63a0b7d626ba 100644
--- a/gcc/cobol/gcobolspec.cc
+++ b/gcc/cobol/gcobolspec.cc
@@ -87,7 +87,7 @@ static std::vector<cl_decoded_option>new_opt;
 
 static bool need_libgcobol = true;
 static bool need_libcompat = false; // This one need for dialect mf or ibm
-static bool need_libposix = false;
+static bool need_libposix = true;
 
 // #define NOISY 1
 
@@ -394,8 +394,6 @@ lang_specific_driver (struct cl_decoded_option 
**in_decoded_options,
             || strstr(decoded_options[i].arg, "mf") )
           {
           need_libcompat = true;
-          // libcompat depends on libposix.
-          need_libposix = true;
           }
         break;

Reply via email to