TUESDAY, SEPTEMBER 29, 2026
cobol
Cobol: Ensure libposix is always available
GCC's Cobol compiler now makes the POSIX bindings library available to all users, not just IBM and MF dialects.
The GCC Cobol compiler has been updated to ensure the libposix library is always available. Previously, its availability was restricted to specific dialects (IBM and MF). This change broadens access to POSIX bindings for all Cobol users, simplifying development and improving cross-dialect compatibility.
In Details
The lang_specific_driver function in gcobolspec.cc now initializes need_libposix to true, guaranteeing that the POSIX bindings library is linked for all COBOL dialects. This corrects a previous limitation where its inclusion was conditional, typically tied to IBM or Micro Focus COBOL compatibility.
For Context
- libposix
- A library for the GCC Cobol compiler that provides POSIX bindings, enabling Cobol programs to interact with POSIX-compliant operating system services.
- dialect
- A specific variant or implementation of the COBOL language, such as IBM COBOL or Micro Focus COBOL, which may have its own extensions or supported features.