diff options
-rw-r--r-- | 997.strip.build | 18 | ||||
-rwxr-xr-x | build.sh | 3 | ||||
-rw-r--r-- | build.vars | 1 |
3 files changed, 21 insertions, 1 deletions
diff --git a/997.strip.build b/997.strip.build new file mode 100644 index 00000000..7db5f5ca --- /dev/null +++ b/997.strip.build @@ -0,0 +1,18 @@ +# +# . ./build.vars and set -o errexit -o noglob are assumed. +# + +if [ "${BUILD}" != "release" ]; then + exit; +else + for __ in $(find ${PREFIX_NATIVE}/bin -perm -0100 \( -type f -or -type l \)); do + set +o errexit; + if [ -n "$(${PKG_TARGET}-objdump -h ${__} 2>/dev/null | awk '/\.debug_info\s/{print}')" ]; then + echo ${PKG_TARGET}-strip ${__}; + ${PKG_TARGET}-strip ${__}; + fi; + set -o errexit; + done; +fi; + +# vim:filetype=sh @@ -158,6 +158,9 @@ for BUILD_LVL in 0 1 2 3 9; do export PKG_TARGET=${TARGET}; \ export PKG_PREFIX=$(get_vars_unsafe PKG_LVL${BUILD_LVL}_PREFIX \ PKG_$(echo ${2} | tr a-z A-Z)_PREFIX); \ + if [ ${BUILD_LVL} -eq 9 ]; then + export PREFIX PREFIX_CROSS PREFIX_MIDIPIX PREFIX_NATIVE PREFIX_ROOT; + fi; export MIDIPIX_BUILD_PWD=$(pwd); cd ${WORKDIR}; \ for SCRIPT_SOURCE in build.subr ${SCRIPT_NAME}.vars \ ${BUILD_SCRIPT_FNAME}; do \ @@ -381,7 +381,6 @@ PKG_LVL3_MAKEFLAGS_INSTALL="DESTDIR=${PREFIX_NATIVE}"; : ${PKG_CRON_BUILD_DIR:=pkg-cron.git}; : ${PKG_CRON_ENV_VARS_EXTRA:="CC=${TARGET}-gcc:CFLAGS=${PKG_LVL3_CFLAGS_CONFIGURE} -D__GNU__"}; : ${PKG_CRON_GIT_BRANCH:=debian/3.0pl1-128}; -: ${PKG_CRON_MAKEFLAGS_INSTALL_EXTRA_RELEASE:="INSTALLFLAGS=-s"}; : ${PKG_CURL_VERSION:=7.47.1}; : ${PKG_CURL_SHA256SUM:=ddc643ab9382e24bbe4747d43df189a0a6ce38fcb33df041b9cb0b3cd47ae98f}; : ${PKG_CURL_URL:=https://curl.haxx.se/download/curl-${PKG_CURL_VERSION}.tar.bz2}; |