aboutsummaryrefslogtreecommitdiff
path: root/config/libc/glibc.in
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2023-07-15 19:21:23 +1200
committerChris Packham <judge.packham@gmail.com>2023-07-21 16:47:34 +1200
commite63c40854c977f488bee159a8f8ebf5fc06c8666 (patch)
tree96260cced7981a028daaefe45b185326da67b9b2 /config/libc/glibc.in
parentbedec42b53b89377e2375786596608f75f4e48fe (diff)
downloadcrosstool-ng-e63c40854c977f488bee159a8f8ebf5fc06c8666.tar.gz
crosstool-ng-e63c40854c977f488bee159a8f8ebf5fc06c8666.tar.bz2
crosstool-ng-e63c40854c977f488bee159a8f8ebf5fc06c8666.zip
provide a workaround for a glibc and GNU make incompatibility
Versions of GNU make newer than 4.4 trigger a hang in versions of glibc older than 2.31. As distros update to the newer GNU make version we'll start seeing more and more reports of this hang. Fortunately we already carry GNU make as a comp tool so all we need to do is select the right version when needed. Fixes #1946, #1932, #1975 Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'config/libc/glibc.in')
-rw-r--r--config/libc/glibc.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/libc/glibc.in b/config/libc/glibc.in
index c5de44ce..81261cdc 100644
--- a/config/libc/glibc.in
+++ b/config/libc/glibc.in
@@ -64,6 +64,15 @@ config GLIBC_DEP_MAKE_4_0
select COMP_TOOLS_MAKE
select MAKE_GNUMAKE_SYMLINK # Override old host make in .build/tools/bin
+# Glibc versions older than 2.31 have a bug that triggers with GNU make 4.4 or newer
+# where the build process hangs indefinitely
+config GLIBC_DEP_MAKE_4_3
+ def_bool y
+ depends on GLIBC_older_than_2_32 && CONFIGURE_has_make_4_4_or_newer
+ select COMP_TOOLS_MAKE
+ select MAKE_GNUMAKE_SYMLINK
+ select MAKE_REQUIRE_older_than_4_4
+
# Glibc 2.31 removed support for pre-v8 SPARC in 32-bit mode (64-bit mode always
# required UltraSPARC)
config GLIBC_SPARC_ALLOW_V7