GCC Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
toplevel Performance Win

Remove unnecessary configure-time dependency of libstdc++ on libgomp.

Build system streamlined by removing a defunct dependency chain involving libstdc++ and libgomp configuration.

This commit removes a long-standing, now unnecessary, configure-time dependency where libstdc++’s configuration waited for libgomp to be configured. This dependency was originally introduced to check for the presence of omp.h for parallel mode enablement. However, subsequent changes modified this check to rely on a string comparison rather than file existence, rendering the original dependency obsolete. Removing this link shortens the critical path in the build process, as libstdc++ is often the last component to finish in bootstrap stages.

In Details

Removes the configure-target-libstdc++-v3 on configure-target-libgomp dependency from Makefile.def. This dependency was introduced in 2007 and later modified in 2010, but the check for parallel mode enablement (GLIBCXX_ENABLE_PARALLEL) evolved from checking file existence (../libgomp/omp.h) to parsing a string of configured target directories. The latter mechanism does not require libgomp to be fully configured beforehand, making the explicit dependency on configure-target-libgomp redundant. The build-time dependency (all-target-libstdc++-v3 on configure-target-libgomp) remains…

For Context
libstdc++
The GNU Standard C++ Library, which provides the C++ standard library implementation for the GCC compiler.
libgomp
The GNU implementation of the OpenMP shared-memory parallel programming model for C, C++, and Fortran.
Configure script
A script generated by Autoconf that checks the system's capabilities, libraries, and other features to adapt the build process to the specific environment. It generates Makefiles and header files.
OpenMP
An API that supports multi-platform shared-memory parallel programming in C, C++, and Fortran, using a set of compiler directives, library routines, and environment variables.
Bootstrap
The process of building a compiler using an earlier version of itself. This is often done in stages to ensure the compiler can build itself correctly.
Filed Under: build systemperformanceconfigure