Skip to content

Commit

Permalink
2008-05-21 Roland McGrath <roland@redhat.com>
Browse files Browse the repository at this point in the history
	* scripts/soversions.awk: Grok ABI line.
	* Makeconfig ($(common-objpfx)soversions.mk): Likewise.
	Emit definition for abi-name variable.
  • Loading branch information
Roland McGrath committed May 22, 2008
1 parent e92799f commit 6fa1659
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makeconfig
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ $(common-objpfx)soversions.mk: $(common-objpfx)soversions.i $(..)Makeconfig
(seen_DEFAULT=0; seen_WORDSIZE32=0; seen_WORDSIZE64=0; \
while read which lib number setname; do \
eval seen_$$which=1; \
test x"$$which" != xABI || echo abi-name = "$$lib"; \
test x"$$which" = xDEFAULT || continue; \
case $$number in \
[0-9]*) echo "$$lib.so-version=.$$number"; \
Expand Down
13 changes: 13 additions & 0 deletions scripts/soversions.awk
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ $2 ~ /WORDSIZE[3264]/ {
next;
}

$2 == "ABI" {
if ((config ~ thiscf) && !abiname) {
abiname = $3;
sub(/@CPU@/, cpu, abiname);
sub(/@VENDOR@/, vendor, abiname);
sub(/@OS@/, os, abiname);
}
next;
}

# Obey the first matching DEFAULT line.
$2 == "DEFAULT" {
$1 = $2 = "";
Expand Down Expand Up @@ -66,6 +76,9 @@ END {
}
}
}
if (abiname) {
print "ABI", abiname
}
for (c in lines) {
print lines[c]
}
Expand Down

0 comments on commit 6fa1659

Please sign in to comment.