diff --git a/srcpkgs/telegram-desktop/template b/srcpkgs/telegram-desktop/template index baaaf92dd41..d9fc8e561a7 100644 --- a/srcpkgs/telegram-desktop/template +++ b/srcpkgs/telegram-desktop/template @@ -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}" +}