diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-28 00:05:06 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-28 00:05:06 +0000 |
commit | 07a8b3b33c88ea606ce5125011fccd530743a632 (patch) | |
tree | 9d7c0d58f522aa4dbdb86288c50f9e3955965bc3 /build_tools | |
parent | cc68a70630fcb496601f7dca984faf714f0fbb88 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@104868 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/strip_nonapi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build_tools/strip_nonapi b/build_tools/strip_nonapi index c2262cafa..ba7482983 100755 --- a/build_tools/strip_nonapi +++ b/build_tools/strip_nonapi @@ -15,11 +15,20 @@ # astman_ # pbx_ +case "${PROC}" in + powerpc64) + TEXTSYM=" D " + ;; + *) + TEXTSYM=" T " + ;; +esac + FILTER="${GREP} -v -e ^ast_ -e ^_ast_ -e ^__ast_ -e ^astman_ -e ^pbx_" case "${OSARCH}" in linux-gnu) - 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 ;; |