From 07464d83751fe3c7145dd43172ff64e18a9a4d66 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Thu, 18 Apr 2024 16:57:47 -0700 Subject: [PATCH] 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. --- srcpkgs/telegram-desktop/template | 6 ++++++ 1 file changed, 6 insertions(+) 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}" +}