telegram-desktop: reduce debug size

Fixes error on armv* glibc:
 armv7l-linux-gnueabihf-objcopy: /destdir/armv7l-linux-gnueabihf/telegram-desktop-4.16.8/usr/bin/telegram-desktop: file format not recognized

This decreases the debug executable on armv7l glibc from 4.3gb to 1.5gb.
This commit is contained in:
oreo639 2024-04-18 16:57:47 -07:00
parent 0edfff8f71
commit 07464d8375
1 changed files with 6 additions and 0 deletions

View File

@ -43,3 +43,9 @@ fi
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
broken="UI doesn't go beyond initial screen, also LE specific code in networking"
fi
pre_configure() {
# Significantly decrease size of debug executable
CFLAGS="${CFLAGS/ -g/ -g1}"
CXXFLAGS="${CXXFLAGS/ -g/ -g1}"
}