diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-02-11 11:02:13 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-02-11 11:02:13 +0000 |
commit | b821229a10e85f03b47d048e119518885cc25e0b (patch) | |
tree | d9ad5bca232cd02a312ed222d1cf88057fdb2290 /scripts | |
parent | 28c85b32ab50681c39105954b3fd5afa6c0b599a (diff) | |
download | glibc-b821229a10e85f03b47d048e119518885cc25e0b.tar glibc-b821229a10e85f03b47d048e119518885cc25e0b.tar.gz glibc-b821229a10e85f03b47d048e119518885cc25e0b.tar.bz2 glibc-b821229a10e85f03b47d048e119518885cc25e0b.zip |
Updated to fedora-glibc-20050211T1037
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/soversions.awk | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/scripts/soversions.awk b/scripts/soversions.awk index 3d50c4deeb..eab2e17677 100644 --- a/scripts/soversions.awk +++ b/scripts/soversions.awk @@ -20,11 +20,8 @@ $2 ~ /WORDSIZE[3264]/ { # Obey the first matching DEFAULT line. $2 == "DEFAULT" { - if (!matched_default[thiscf]) { - matched_default[thiscf] = 1; - $1 = $2 = ""; - default_set[thiscf] = $0; - } + $1 = $2 = ""; + default_set[++ndefault_set] = thiscf "\n" $0; next } @@ -48,12 +45,21 @@ END { split(elt, x); cf = x[1]; lib = x[2]; - if (default_setname && !(cf in default_set) && config ~ cf) - default_set[cf] = default_setname; - set = (elt in versions) ? versions[elt] : default_set[cf]; - line = set ? (lib FS numbers[elt] FS set) : (lib FS numbers[elt]); for (c in configs) if (c ~ cf) { + if (elt in versions) + set = versions[elt]; + else { + set = (c == config) ? default_setname : ""; + for (i = 1; i <= ndefault_set; ++i) { + split(default_set[i], x, "\n"); + if (c ~ x[1]) { + set = x[2]; + break; + } + } + } + line = set ? (lib FS numbers[elt] FS set) : (lib FS numbers[elt]); if (!((c FS lib) in lineorder) || order[elt] < lineorder[c FS lib]) { lineorder[c FS lib] = order[elt]; lines[c FS lib] = configs[c] FS line; |