summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-02-28 00:11:31 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-02-28 00:11:31 +0000
commit7d564048ed27abf45258055d483d938c28908843 (patch)
treea8f65d8be80915f6aeea7eed61660ec8fa9e6650 /build_tools
parent60eec5bdcbd0bd166351fac02138304a4c661432 (diff)
Merged revisions 104868 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104868 | tilghman | 2008-02-27 18:05:06 -0600 (Wed, 27 Feb 2008) | 7 lines Compatibility fix for PPC64 (closes issue #12081) Reported by: jcollie Patches: asterisk-1.4.18-funcdesc.patch uploaded by jcollie (license 412) Tested by: jcollie, Corydon76 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/strip_nonapi11
1 files changed, 10 insertions, 1 deletions
diff --git a/build_tools/strip_nonapi b/build_tools/strip_nonapi
index 8a8d06fcc..fe62c3de5 100755
--- a/build_tools/strip_nonapi
+++ b/build_tools/strip_nonapi
@@ -18,9 +18,18 @@
FILTER="${GREP} -v -e ^ast_ -e ^_ast_ -e ^__ast_ -e ^astman_ -e ^pbx_ -e ^resample_"
+case "${PROC}" in
+ powerpc64)
+ TEXTSYM=" D "
+ ;;
+ *)
+ TEXTSYM=" T "
+ ;;
+esac
+
case "${OSARCH}" in
linux-gnu|FreeBSD)
- nm ${1} | ${GREP} -e " T " | cut -d" " -f3 | ${FILTER} > striplist
+ nm ${1} | ${GREP} -e "$TEXTSYM" | cut -d" " -f3 | ${FILTER} > striplist
sed -e "s/^/-N /" striplist | xargs ${STRIP} ${1}
rm -f striplist
;;