From 1f44b9291d4658448d557f455f846afaba9cd31e Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 30 Apr 2022 15:37:00 +0200 Subject: extra/firefox: stripping libxul.so by hand --- extra/firefox/PKGBUILD | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'extra/firefox') diff --git a/extra/firefox/PKGBUILD b/extra/firefox/PKGBUILD index 823834f5..6c6a7965 100644 --- a/extra/firefox/PKGBUILD +++ b/extra/firefox/PKGBUILD @@ -234,3 +234,14 @@ eval "$( $ i patch -p1 -i "$srcdir/firefox-99.0.1-fdlibm-double.patch" ' )" + +# disable stripping in mozconfig. (insists to use llvm-strip which runs +# out of memory on libxul.so. Now 2.5 GB can be strupped to 166 MB, so we do +# that with the normal 'strip' from binutils after 'mach install' +eval "$( + declare -f package | \ + sed ' + /.*mach.*install/ a \ + strip "$pkgdir/usr/lib/$pkgname/libxul.so" + ' +)" -- cgit v1.2.3-54-g00ecf