Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / 
ocaml-zarith


Commits:
e16bd743 by Carl Smedstad at 2025-10-14T09:58:59+02:00
upgpkg: 1.14-6: Enable fat LTO to avoid rebuilds on GCC updates

Stripping breaks the package, so this is necessary to avoid rebuilds for GCC
updates.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = ocaml-zarith
        pkgdesc = Implements arithmetic and logical operations over 
arbitrary-precision integers and rational numbers
        pkgver = 1.14
-       pkgrel = 5
+       pkgrel = 6
        url = https://github.com/ocaml/Zarith
        arch = x86_64
        license = GPL-2.0-only


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 
 pkgname=ocaml-zarith
 pkgver=1.14
-pkgrel=5
+pkgrel=6
 pkgdesc='Implements arithmetic and logical operations over arbitrary-precision 
integers and rational numbers'
 url='https://github.com/ocaml/Zarith'
 arch=('x86_64')
@@ -26,6 +26,8 @@ 
b2sums=('e00b6ed0893a7a4b53c859edc02030336f1c35405202f87741d87288819bdb6562bb372
 
 build() {
   cd Zarith-release-$pkgver
+  export CFLAGS+=' -ffat-lto-objects'
+  export CXXFLAGS+=' -ffat-lto-objects'
   ./configure -installdir /usr/lib/ocaml
   make
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ocaml-zarith/-/commit/e16bd743ffd63863160cd0a619bdf5ba09e1641f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ocaml-zarith/-/commit/e16bd743ffd63863160cd0a619bdf5ba09e1641f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to