]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Compatibility fix for PPC64
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 28 Feb 2008 00:05:06 +0000 (00:05 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 28 Feb 2008 00:05:06 +0000 (00:05 +0000)
(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/branches/1.4@104868 65c4cc65-6c06-0410-ace0-fbb531ad65f3

build_tools/strip_nonapi
main/Makefile

index c2262cafacd02e8ff4880ed4c6e92485f95acca4..ba748298365f2ef0d306f5afcf1de365c8e5b732 100755 (executable)
 #      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
        ;;
index 204e7dff6fd18058beee984200918680169b8e8e..c9de882737f48b01a46296424500cf675f009e75 100644 (file)
@@ -146,7 +146,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