diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-09-25 11:18:05 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-09-25 11:18:05 +0300 |
commit | a9088ffb1a492c6756930aca808d0f6d6450b210 (patch) | |
tree | b3d1d98ae8f66582d5e61003009442ce3649e08c | |
parent | 93d6ce6a71e3dca50f305ac5aa94f84a3cf9f135 (diff) | |
download | guix-a9088ffb1a492c6756930aca808d0f6d6450b210.tar.gz guix-a9088ffb1a492c6756930aca808d0f6d6450b210.zip |
gnu: flac: Fix building on armhf-linux.
* gnu/packages/xiph.scm (flac)[arguments]: When building for armhf-linux
add a phase to adjust the compiler options to use -O2 instead of -O3.
Change-Id: I26fd0ea77101e93a3a3e8697c21a7e443dccdfa0
-rw-r--r-- | gnu/packages/xiph.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/xiph.scm b/gnu/packages/xiph.scm index 62f181d216..7ca336b14a 100644 --- a/gnu/packages/xiph.scm +++ b/gnu/packages/xiph.scm @@ -272,7 +272,17 @@ It currently supports: "0w2v40kmvl741vmycv8h5s10n7arbs12n2b1p10z8j13saffcn3c")))) (build-system gnu-build-system) (arguments - `(#:parallel-tests? #f)) + `(#:parallel-tests? #f + ;; Unfortunately we need to make some changes to work around an + ;; assembly generation errors when building for armhf-linux. + #:phases + ,@(if (target-arm32?) + `((modify-phases %standard-phases + (add-before 'configure 'patch-configure + (lambda _ + (substitute* "configure" + (("-O3") "-O2")))))) + '(%standard-phases)))) ;; FIXME: configure also looks for xmms, input could be added once it exists (propagated-inputs (list libogg)) ; required by flac.pc (synopsis "Free lossless audio codec") |