diff --git a/scripts/build b/scripts/build index 22c9f7fb7b..41c4f65759 100755 --- a/scripts/build +++ b/scripts/build @@ -164,6 +164,10 @@ TARGET_MESON_OPTS="--prefix=/usr \ --libexecdir=/usr/lib \ --localstatedir=/var \ --buildtype=${MESON_BUILD_TYPE}" +if [ ${BUILD_WITH_DEBUG} != yes ] && flag_enabled "strip" "yes"; then + TARGET_MESON_OPTS+=" -Dstrip=true" +fi + # configure HOST build defaults HOST_CONFIGURE_OPTS="--host=${HOST_NAME} \