mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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
This commit is contained in:
parent
93d6ce6a71
commit
a9088ffb1a
1 changed files with 11 additions and 1 deletions
|
@ -272,7 +272,17 @@ (define-public flac
|
|||
"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")
|
||||
|
|
Loading…
Reference in a new issue