[PATCH 9/9] test-installation: skip libanl if not built
Xi Ruoyao
xry111@xry111.site
Sat Sep 19 10:04:44 GMT 2026
For newer ports (such as LoongArch) libanl is not built at all.
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
---
scripts/test-installation.pl | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/scripts/test-installation.pl b/scripts/test-installation.pl
index cce7691a92..7c1dbc8d5e 100755
--- a/scripts/test-installation.pl
+++ b/scripts/test-installation.pl
@@ -81,15 +81,18 @@ if ($#ARGV == -1) {
$dir = ".";
$soversions="soversions.mk";
$config="config.make";
+ $symversions="Versions.mk";
} elsif ($#ARGV == 0) {
if (-d $ARGV[0]) {
$dir = $ARGV[0];
$soversions = "$ARGV[0]/soversions.mk";
$config = "$ARGV[0]/config.make";
+ $symversions = "$ARGV[0]/Versions.mk";
} else {
$soversions = $dir = $ARGV[0];
$dir =~ s!/?[^/]*/*$!!;
$config = $dir . "/config.make";
+ $symversions = $dir . "/Versions.mk";
}
} else {
die "Wrong number of arguments.";
@@ -101,6 +104,12 @@ if (system ("grep -q \"build-mathvec = yes\" $config") == 0) {
$build_mathvec = 0;
}
+if (system ("grep -q \"have-GLIBC_2.34 = yes\" $symversions") == 0) {
+ $build_anl = 1;
+} else {
+ $build_anl = 0;
+}
+
# Read names and versions of all shared libraries that are part of
# glibc
open SOVERSIONS, $soversions
@@ -130,8 +139,9 @@ while (<SOVERSIONS>) {
"dl", "rt", "pthread", "util",
);
next if (grep { $_ eq $name } @skip);
- # libmvec if it wasn't built
+ # libmvec and/or libanl if one wasn't built
next if ($build_mathvec == 0 && $name eq "mvec");
+ next if ($build_anl == 0 && $name eq "anl");
$link_libs .= " -l$name";
$versions{$name} = $version;
} elsif ($LD_SO ne "") {
--
2.55.0
More information about the Libc-alpha
mailing list