From c9627323eca0fb1e0b0a0680049ea0f9f20def5e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 24 Jan 2022 14:18:08 +0100 Subject: gnu: guile@2.0: Build with '-fexcess-precision=standard' on i686. Fixes . Reported by Denis 'GNUtoo' Carikli . This is a followup to 9b09a753a9711f7614564272013138fce6fec708. * gnu/packages/guile.scm (guile-2.0)[arguments]: Augment #:configure-flags when 'target-x86-32?'. (guile-2.2)[arguments]: Tweak #:configure-flags to keep derivation unchanged. (guile-3.0)[arguments]: Likewise. --- gnu/packages/guile.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index 55c89cafab..6cfd609916 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -187,7 +187,10 @@ without requiring the source code to be rewritten.") (outputs '("out" "debug")) (arguments - `(#:configure-flags '("--disable-static") ; saves 3 MiB + `(#:configure-flags + ,(if (target-x86-32?) ; + ''("--disable-static" "CFLAGS=-g -O2 -fexcess-precision=standard") + ''("--disable-static")) ;saves 3 MiB ;; Work around non-reproducible .go files as described in ;; , which affects 2.0, 2.2, and 3.0 so far. @@ -273,7 +276,8 @@ without requiring the source code to be rewritten.") (substitute-keyword-arguments (package-arguments guile-2.0) ((#:configure-flags flags ''()) (if (target-x86-32?) ; - `(append ,flags '("CFLAGS=-g -O2 -fexcess-precision=standard")) + `(append '("--disable-static") + '("CFLAGS=-g -O2 -fexcess-precision=standard")) flags)))) (properties '((timeout . 72000) ;20 hours @@ -345,7 +349,7 @@ without requiring the source code to be rewritten.") '("CFLAGS=-g -O2 -fexcess-precision=standard") '()) "--enable-mini-gmp" - ,flags)) + '("--disable-static"))) ((#:phases phases) `(modify-phases ,phases (add-before 'check 'disable-stack-overflow-test -- cgit 1.4.1