aboutsummaryrefslogtreecommitdiff
path: root/scripts/test-installation.pl
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-08-29 06:45:37 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-08-29 06:45:37 -0700
commitd22e28b070d3d1572d39a463d711c6f223078552 (patch)
treec441a28af6eb2dc8c215fece6877b9585d6d6d88 /scripts/test-installation.pl
parent050af9c4e86eeecd484ed44b7765e750523276eb (diff)
downloadglibc-d22e28b070d3d1572d39a463d711c6f223078552.tar
glibc-d22e28b070d3d1572d39a463d711c6f223078552.tar.gz
glibc-d22e28b070d3d1572d39a463d711c6f223078552.tar.bz2
glibc-d22e28b070d3d1572d39a463d711c6f223078552.zip
Use LD_SO to set $ld_so_name/$ld_so_version
Diffstat (limited to 'scripts/test-installation.pl')
-rwxr-xr-xscripts/test-installation.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/test-installation.pl b/scripts/test-installation.pl
index 1b22086bf9..0700770858 100755
--- a/scripts/test-installation.pl
+++ b/scripts/test-installation.pl
@@ -25,6 +25,11 @@ if ($ENV{CC}) {
} else {
$CC= "gcc";
}
+if ($ENV{LD_SO}) {
+ $LD_SO = $ENV{LD_SO};
+} else {
+ $LD_SO = "";
+}
sub usage {
print "Usage: test-installation [soversions.mk]\n";
@@ -112,6 +117,8 @@ while (<SOVERSIONS>) {
$link_libs .= " -l$name";
$versions{$name} = $version;
}
+ } elsif ($LD_SO ne "") {
+ ($ld_so_name, $ld_so_version) = split ('\.so\.', $LD_SO);
} else {
if (/^ld\.so/) {
($ld_so_name, $ld_so_version)= /=(.*)\.so\.(.*)$/;