diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-28 00:11:31 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-28 00:11:31 +0000 |
commit | 85434616d949d027074cbd3b23462ee5852389ac (patch) | |
tree | a8f65d8be80915f6aeea7eed61660ec8fa9e6650 | |
parent | ca10327a0e97714e0d765e2bf5da5b34df1a2972 (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: http://svn.digium.com/svn/asterisk/trunk@104869 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | build_tools/strip_nonapi | 11 | ||||
-rw-r--r-- | main/Makefile | 2 |
2 files changed, 11 insertions, 2 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 ;; diff --git a/main/Makefile b/main/Makefile index 76e6446a4..8af41a5ac 100644 --- a/main/Makefile +++ b/main/Makefile @@ -163,7 +163,7 @@ ifneq ($(findstring chan_h323,$(MENUSELECT_CHANNELS)),) else $(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS) endif - @$(ASTTOPDIR)/build_tools/strip_nonapi $@ + $(CMD_PREFIX) $(ASTTOPDIR)/build_tools/strip_nonapi $@ || rm $@ clean:: rm -f asterisk |