mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-06-06 07:08:38 -04:00
scripts/build: properly honor strip build flag
Package building honor's the strip flag so we can prevent executables from being stripped. But copying files to INSTALL ignored that flag which meant the flag had practically no effect. Fix this by using the same logic as we do in the meson strip handling in line 170 and in config/functions. Also add the missing quotes in scripts/build to align it with config/functions Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
a0f002bc17
commit
f5f9a9e1cc
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue