build: fix check-exports.sh for ppc64 arch
authorThomas Haller <thaller@redhat.com>
Fri, 19 Dec 2014 13:49:00 +0000 (14:49 +0100)
committerThomas Haller <thaller@redhat.com>
Fri, 19 Dec 2014 13:53:00 +0000 (14:53 +0100)
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.

tools/check-exports.sh

index 2049d0b..dfd882c 100755 (executable)
@@ -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
 }