git » libreoffice-still.git » commit 7b3f440

build only minimal debug info to reduce size (~1.2GB -> ~225MB)

author Andreas Radke
2023-01-26 22:38:17 UTC
committer Andreas Radke
2023-01-26 22:38:17 UTC
parent c99b9769861b4f4f766adefb9b6cef4279add6e5

build only minimal debug info to reduce size (~1.2GB -> ~225MB)

PKGBUILD +4 -0

diff --git a/PKGBUILD b/PKGBUILD
index d936d78..5515368 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -155,6 +155,10 @@ build() {
 	# strip -s from Makeflags in case you use it to shorten build logs
 	_MAKEFLAGS=${MAKEFLAGS/-s/}
 
+        # Build only minimal debug info to reduce size (~1.2GB -> ~225MB)
+        CFLAGS=${CFLAGS/-g /-g1 }
+        CXXFLAGS=${CXXFLAGS/-g /-g1 }
+
 	# http://site.icu-project.org/download/61#TOC-Migration-Issues
 	CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1'