diff options
author | Roland McGrath <roland@gnu.org> | 2000-03-19 20:36:44 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-03-19 20:36:44 +0000 |
commit | 361742eda986901daf75169faaf648d4d132ccfb (patch) | |
tree | a5d99df3b839ac0fd99cf17886ea35b900d16039 /scripts/versions.awk | |
parent | 882688521994c2329242212a61dd2a7c44eadbc6 (diff) | |
download | glibc-361742eda986901daf75169faaf648d4d132ccfb.tar glibc-361742eda986901daf75169faaf648d4d132ccfb.tar.gz glibc-361742eda986901daf75169faaf648d4d132ccfb.tar.bz2 glibc-361742eda986901daf75169faaf648d4d132ccfb.zip |
* shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
supported version for libc 0.2.90.libio to GLIBC_2.2.
* Makeconfig (soversions.mk): Grok new third column in shlib-versions,
and use it to emit new variable `map-firstversions'.
* scripts/firstversions.awk: New file.
* Makerules (Versions.all): Use scripts/firstversions.awk and
the $(map-firstversions) value to generate a modified versions list
that includes renames in "A = B" syntax for each version set earlier
than the "earliest symbol version" named in shlib-versions.
* scripts/versions.awk: Recognize "A = B" lines in the input to mean
rename version set A to B in the output to the intermediate file.
* scripts/abi-versions.awk: New file.
* Makerules (abi-versions.h): New target, generated by that script.
[$(versioning) = yes] (before-compile): Prepend abi-versions.h.
* include/shlib-compat.h: New file, uses that generated header.
Diffstat (limited to 'scripts/versions.awk')
-rw-r--r-- | scripts/versions.awk | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/versions.awk b/scripts/versions.awk index 78ed73914b..086a963b25 100644 --- a/scripts/versions.awk +++ b/scripts/versions.awk @@ -16,7 +16,10 @@ BEGIN { libs[$1] = 1; curlib = $1; while (getline < defsfile && ! /^}/) { - versions[$1] = 1; + if ($2 == "=") + renamed[$1] = $3; + else + versions[$1] = 1; } } } @@ -33,6 +36,7 @@ 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"; @@ -43,11 +47,14 @@ BEGIN { # This matches the beginning of a new version for the current library. /^ [A-Za-z_]/ { - actver = $1; - if (!versions[$1]) { + if (renamed[$1]) + actver = renamed[$1]; + else if (!versions[$1]) { printf("version %s not defined\n", $1) > "/dev/stderr"; exit 1; } + else + actver = $1; next; } |