1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-06-13 19:21:36 +03:00

* scripts/versions.awk: Fixed version renaming code to distinguish

libraries properly.
This commit is contained in:
Roland McGrath
2000-03-20 18:33:28 +00:00
parent 8600b1afb7
commit d3564d01a7
2 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2000-03-20 Roland McGrath <roland@baalperazim.frob.com>
* scripts/versions.awk: Fixed version renaming code to distinguish
libraries properly.
2000-03-19 Ulrich Drepper <drepper@redhat.com> 2000-03-19 Ulrich Drepper <drepper@redhat.com>
* include/stdlib.h: Add prototype for __cxa_atexit. * include/stdlib.h: Add prototype for __cxa_atexit.

View File

@ -1,6 +1,5 @@
# Combine version map fragments into version files for the generated # Combine version map fragments into version scripts for our shared objects.
# shared object. # Copyright (C) 1998,99,2000 Free Software Foundation, Inc.
# (C) Copyright 1998, 1999 Free Software Foundation, Inc.
# Written by Ulrich Drepper <drepper@cygnus.com>, 1998. # Written by Ulrich Drepper <drepper@cygnus.com>, 1998.
# This script expects the following variables to be defined: # This script expects the following variables to be defined:
@ -16,8 +15,9 @@ BEGIN {
libs[$1] = 1; libs[$1] = 1;
curlib = $1; curlib = $1;
while (getline < defsfile && ! /^}/) { while (getline < defsfile && ! /^}/) {
if ($2 == "=") if ($2 == "=") {
renamed[$1] = $3; renamed[curlib "::" $1] = $3;
}
else else
versions[$1] = 1; versions[$1] = 1;
} }
@ -36,7 +36,6 @@ BEGIN {
# This matches the beginning of the version information for a new library. # This matches the beginning of the version information for a new library.
/^[a-zA-Z0-9_.]+/ { /^[a-zA-Z0-9_.]+/ {
delete renamed;
actlib = $1; actlib = $1;
if (!libs[$1]) { if (!libs[$1]) {
printf("no versions defined for %s\n", $1) > "/dev/stderr"; 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. # This matches the beginning of a new version for the current library.
/^ [A-Za-z_]/ { /^ [A-Za-z_]/ {
if (renamed[$1]) if (renamed[actlib "::" $1])
actver = renamed[$1]; actver = renamed[actlib "::" $1];
else if (!versions[$1]) { else if (!versions[$1]) {
printf("version %s not defined\n", $1) > "/dev/stderr"; printf("version %s not defined\n", $1) > "/dev/stderr";
exit 1; exit 1;