aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-20 18:33:28 +0000
committerRoland McGrath <roland@gnu.org>2000-03-20 18:33:28 +0000
commitd3564d01a715d65be18a99aaaaa36ed35b59eba2 (patch)
treeda87a01c21397499d8d196b68cbf92501fe2f403 /scripts
parent8600b1afb7c671aa85bc6868b627a3ab95963d24 (diff)
downloadglibc-d3564d01a715d65be18a99aaaaa36ed35b59eba2.zip
glibc-d3564d01a715d65be18a99aaaaa36ed35b59eba2.tar.gz
glibc-d3564d01a715d65be18a99aaaaa36ed35b59eba2.tar.bz2
* scripts/versions.awk: Fixed version renaming code to distinguish
libraries properly.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/versions.awk15
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/versions.awk b/scripts/versions.awk
index 086a963..64ac2d9 100644
--- a/scripts/versions.awk
+++ b/scripts/versions.awk
@@ -1,6 +1,5 @@
-# Combine version map fragments into version files for the generated
-# shared object.
-# (C) Copyright 1998, 1999 Free Software Foundation, Inc.
+# Combine version map fragments into version scripts for our shared objects.
+# Copyright (C) 1998,99,2000 Free Software Foundation, Inc.
# Written by Ulrich Drepper <drepper@cygnus.com>, 1998.
# This script expects the following variables to be defined:
@@ -16,8 +15,9 @@ BEGIN {
libs[$1] = 1;
curlib = $1;
while (getline < defsfile && ! /^}/) {
- if ($2 == "=")
- renamed[$1] = $3;
+ if ($2 == "=") {
+ renamed[curlib "::" $1] = $3;
+ }
else
versions[$1] = 1;
}
@@ -36,7 +36,6 @@ BEGIN {
# This matches the beginning of the version information for a new library.
/^[a-zA-Z0-9_.]+/ {
- delete renamed;
actlib = $1;
if (!libs[$1]) {
printf("no versions defined for %s\n", $1) > "/dev/stderr";
@@ -47,8 +46,8 @@ BEGIN {
# This matches the beginning of a new version for the current library.
/^ [A-Za-z_]/ {
- if (renamed[$1])
- actver = renamed[$1];
+ if (renamed[actlib "::" $1])
+ actver = renamed[actlib "::" $1];
else if (!versions[$1]) {
printf("version %s not defined\n", $1) > "/dev/stderr";
exit 1;