aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-06-20 15:28:12 -0700
committerH.J. Lu <hjl.tools@gmail.com>2024-07-02 00:51:34 -0700
commit23f12e6e0c95aaf8b5b4973d029db794a43f248a (patch)
tree0a1f40e34bcefc6644c16a618e31081e912a7c8d /manual
parentdce754b1553b86fc6352636f1fa490a85b7cf0ff (diff)
downloadglibc-23f12e6e0c95aaf8b5b4973d029db794a43f248a.zip
glibc-23f12e6e0c95aaf8b5b4973d029db794a43f248a.tar.gz
glibc-23f12e6e0c95aaf8b5b4973d029db794a43f248a.tar.bz2
Add --disable-static-c++-link-check option [BZ #31412]
The current minimum GCC version of glibc build is GCC 6.2 or newer. But building i686 glibc with GCC 6.4 on Fedora 40 failed since the C++ header files couldn't be found which was caused by the static C++ link check failure due to missing __divmoddi4 which was referenced in i686 libc.a and added to GCC 7. Add --disable-static-c++-link-check configure option to disable the static C++ link test. The newly built i686 libc.a can be used by GCC 6.4 to create static C++ tests. This fixes BZ #31412. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'manual')
-rw-r--r--manual/install.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/manual/install.texi b/manual/install.texi
index 6504d02..6b6595a 100644
--- a/manual/install.texi
+++ b/manual/install.texi
@@ -252,6 +252,14 @@ configure with @option{--disable-werror}.
By default for x86_64, @theglibc{} is built with the vector math library.
Use this option to disable the vector math library.
+@item --disable-static-c++-link-check
+By default, if the C++ toolchain lacks support for static linking,
+configure fails to find the C++ header files and the glibc build fails.
+Use this option to disable the static C++ link check so that the C++
+header files can be located. The newly built libc.a can be used to
+create static C++ tests if the C++ toolchain has the necessary static
+C++ libraries.
+
@item --disable-scv
Disable using @code{scv} instruction for syscalls. All syscalls will use
@code{sc} instead, even if the kernel supports @code{scv}. PowerPC only.