Subject: [bug#77404] [PATCH 1/1] Activate higher compiler optimization for PETSc.

From: Luca Cirrottola <[email-masked]>
Date: Mon, 31 Mar 2025 12:44:35 +0200

---
 gnu/packages/maths.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 74c486b38a..fd0c940507 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3658,7 +3658,10 @@ (define-public petsc
       #:test-target "test"
       #:parallel-build? #f             ; build is parallel by default
       #:configure-flags
-      #~(list "--with-mpi=0"
+      #~(list "COPTFLAGS=-g -O3"
+              "CXXOPTFLAGS=-g -O3"
+              "FOPTFLAGS=-g -O3"
+              "--with-mpi=0"
               "--with-openmp=1"
               "--with-openblas=1"
               (string-append "--with-openblas-dir="
-- 
2.34.1