Don't enable something by default that has a dependency on something _not_ enabled...
[asterisk/asterisk.git] / build_tools / strip_nonapi
index 5a52eef..17492e6 100755 (executable)
 #      __ast_
 #      astman_
 #      pbx_
+#      resample_
 
-FILTER="${GREP} -v -e ^ast_ -e ^_ast_ -e ^__ast_ -e ^astman_ -e ^pbx_"
+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
-       sed -e "s/^/-N /" striplist | xargs ${STRIP} ${1}
+       nm ${1} | ${GREP} -e "$TEXTSYM" | cut -d" " -f3 | ${FILTER} > striplist
+       sed -e "s/^/-N /" striplist | xargs -n 40 ${STRIP} ${1}
        rm -f striplist
        ;;
     *)