diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2017-11-19 22:06:53 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2017-11-19 22:07:26 +0200 |
commit | 118a8eccb08b2d115102d75cf586fbf060a621ba (patch) | |
tree | f796cb2e2e48d9d82fe5cfb94764b4659000191b /gnu/packages/audio.scm | |
parent | a93447b89a5b132221072e729d13a3f17391b8c2 (diff) | |
download | guix-118a8eccb08b2d115102d75cf586fbf060a621ba.tar guix-118a8eccb08b2d115102d75cf586fbf060a621ba.tar.gz |
gnu: audacity: Fix building on non-Intel systems.
* gnu/packages/audio.scm (audacity)[arguments]: On non-Intel systems add
a configure-flag to disable SSE optimizations.
Diffstat (limited to 'gnu/packages/audio.scm')
-rw-r--r-- | gnu/packages/audio.scm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 384010372f..da93143924 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -83,7 +83,8 @@ #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) #:use-module (gnu packages music) - #:use-module (srfi srfi-1)) + #:use-module (srfi srfi-1) + #:use-module (srfi srfi-26)) (define-public alsa-modular-synth (package @@ -341,13 +342,19 @@ engineers, musicians, soundtrack editors and composers.") ("python" ,python-2) ("which" ,which))) (arguments - '(#:configure-flags + `(#:configure-flags (let ((libid3tag (assoc-ref %build-inputs "libid3tag")) (libmad (assoc-ref %build-inputs "libmad")) (portmidi (assoc-ref %build-inputs "portmidi"))) (list ;; Loading FFmpeg dynamically is problematic. "--disable-dynamic-loading" + ;; SSE instructions are available on Intel systems only. + ,@(if (any (cute string-prefix? <> (or (%current-target-system) + (%current-system))) + '("x64_64" "i686")) + '() + '("--enable-sse=no")) ;; portmidi, libid3tag and libmad provide no .pc files, so ;; pkg-config fails to find them. Force their inclusion. (string-append "ID3TAG_CFLAGS=-I" libid3tag "/include") |