build: fix check-exports.sh for ppc64 arch

On ppc64, `nm` reports the exported symbols as 'D' instead of 'T'.
This caused `make check` to fail.

  "D" The symbol is in the initialized data section.
  "T" The symbol is in the text (code) section.

(cherry picked from commit 4838543053)
This commit is contained in:
Thomas Haller 2014-12-19 14:49:00 +01:00
parent 35f95de60e
commit 69ca27e851

View file

@ -13,7 +13,7 @@ TMPFILE="$(mktemp .nm-check-exports.XXXXXX)"
get_syms() {
nm "$1" |
sed -n 's/^[[:xdigit:]]\+ T //p' |
sed -n 's/^[[:xdigit:]]\+ [DT] //p' |
sort
}