blob: c4e17a3e39cea46db0a25a213b97c7b45783606a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#
# . ./build.vars and set -o errexit -o noglob are assumed.
#
do_strip() {
if [ ${BUILD_SCRIPT_RC:-0} -eq 0 ]\
&& [ "${BUILD}" = release ]; then
for __ in $(find ${PREFIX_NATIVE}/bin -perm -0100 \( -type f -or -type l \)); do
if objdump -sj .debug_info >/dev/null 2>&1; then
if [ ${ARG_VERBOSE:-0} -eq 1 ]; then
echo ${PKG_TARGET}-strip ${__};
fi;
set +o errexit; ${PKG_TARGET}-strip ${__}; set -o errexit;
fi;
done;
fi;
};
# vim:filetype=sh
|