Merge pull request #7726 from HiassofT/le11-build-strip

[le11] scripts/build: properly honor strip build flag
This commit is contained in:
Christian Hewitt 2023-04-06 09:38:37 +04:00 committed by GitHub
commit 64e9552d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ TARGET_MESON_OPTS="--prefix=/usr \
--libexecdir=/usr/lib \
--localstatedir=/var \
--buildtype=${MESON_BUILD_TYPE}"
if [ ${BUILD_WITH_DEBUG} != yes ] && flag_enabled "strip" "yes"; then
if [ "${BUILD_WITH_DEBUG}" != "yes" ] && flag_enabled "strip" "yes"; then
TARGET_MESON_OPTS+=" -Dstrip=true"
fi
@ -524,7 +524,7 @@ if [ "${TARGET}" = "target" -o "${TARGET}" = "init" ]; then
python_fix_abi "${INSTALL}"
if [ ! "${BUILD_WITH_DEBUG}" = "yes" ]; then
if [ "${BUILD_WITH_DEBUG}" != "yes" ] && flag_enabled "strip" "yes"; then
${STRIP} $(find ${INSTALL} \
-type f -name "*.so*" \
! -name "ld-*.so" \